[
http://jira.codehaus.org/browse/MNG-4013?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shane Isbell closed MNG-4013.
-----------------------------
Resolution: Fixed
Fix Version/s: 3.0-alpha-2
Identical plugin executions are allowed in pom. This can cause failure in Maven
3 (since there is no longer cloning of maven project) on duplicate attached
artifacts. Maven just logs warning, no longer throws exception.
> DuplicateArtifactAttachmentException On Building Test Jar
> ---------------------------------------------------------
>
> Key: MNG-4013
> URL: http://jira.codehaus.org/browse/MNG-4013
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 3.0-alpha-2
> Reporter: Shane Isbell
> Assignee: Shane Isbell
> Fix For: 3.0-alpha-2
>
>
> I see this problem when building nexus-proxy. This is due to maven-jar-plugin
> Caused by: org.apache.maven.project.DuplicateArtifactAttachmentException:
> Duplicate artifact attachment detected. (project:
> org.sonatype.nexus:nexus-proxy:jar:1.3.0-SNAPSHOT; illegal attachment:
> org.sonatype.nexus:nexus-proxy:jar:tests:1.3.0-SNAPSHOT)
> at
> org.apache.maven.project.MavenProject.addAttachedArtifact(MavenProject.java:1440)
> at
> org.apache.maven.project.DefaultMavenProjectHelper.attachArtifact(DefaultMavenProjectHelper.java:102)
> at
> org.apache.maven.project.DefaultMavenProjectHelper.attachArtifact(DefaultMavenProjectHelper.java:70)
> at
> org.apache.maven.plugin.jar.AbstractJarMojo.execute(AbstractJarMojo.java:179)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:629)
--
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