You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jason van Zyl (JIRA)" <ji...@codehaus.org> on 2007/05/28 02:04:59 UTC
[jira] Closed: (MANTTASKS-21) Attached artefacts not handled
[ http://jira.codehaus.org/browse/MANTTASKS-21?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jason van Zyl closed MANTTASKS-21.
----------------------------------
Resolution: Fixed
Attached artifacts work fine.
> 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