[ http://jira.codehaus.org/browse/MANTTASKS-21?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_91562 ]
Jason Dillon commented on MANTTASKS-21: --------------------------------------- The code patch seems to have nothing todo with attaching artifacts. I've added a patch [MANTTASKS-42] which adds nested {{<attach>}} configuration to the {{install}} and {{deploy}} tasks to add support to attach arbitrary files. > Attached artefacts not handled > ------------------------------ > > Key: MANTTASKS-21 > URL: http://jira.codehaus.org/browse/MANTTASKS-21 > Project: Maven 2.x Ant Tasks > Issue Type: Bug > Reporter: Tomislav Bodor > Attachments: MNG-1544-maven-artifact-ant.patch, MNG-1544-site.patch > > > The install and deploy tasks don't seem to be able to handle attached > artefacts. There appear to be two sides to the problem: first, there seems to > be no way to attach anything, and second, even if it were attached, the > install and deploy tasks don't do anything with attachments. > The latter could be solved by adding to the install (and similar to the > deploy) task something along the lines of (similar to the InstallMojo in the > install plugin): > List attachedArtifacts = > pom.getMavenProject().getAttachedArtifacts(); > for (Iterator i = attachedArtifacts.iterator(); i.hasNext(); ) { > Artifact attached = (Artifact) i.next(); > installer.install(attached.getFile(), attached, localRepo); > } > For the former (how to attach anything), a new task could be added (say, > 'attach', taking a type, classifier and file). > This functionality is needed to handle source archives and EJB client jars. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira