Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 3.0-alpha-2
-
Fix Version/s: 3.0-alpha-2
-
Component/s: None
-
Labels:None
-
Complexity:Intermediate
Description
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)
Issue Links
- is related to
-
MNG-3119
Duplicate attached artifacts should not be allowed.
-
Seems to be ignoring the classifier during the comparison (illegal attachment is the tests jar)