jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-4013

DuplicateArtifactAttachmentException On Building Test Jar

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major 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

Improvement - An improvement or enhancement to an existing feature or task. MNG-3119 Duplicate attached artifacts should not be allowed.

  • Major - Major loss of function.
  • Reopened - This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Brian Fox added a comment - 27/Jan/09 8:35 PM

Seems to be ignoring the classifier during the comparison (illegal attachment is the tests jar)

Show
Brian Fox added a comment - 27/Jan/09 8:35 PM Seems to be ignoring the classifier during the comparison (illegal attachment is the tests jar)
Hide
Permalink
Shane Isbell added a comment - 27/Jan/09 11:45 PM

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.

Show
Shane Isbell added a comment - 27/Jan/09 11:45 PM 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.

People

  • Assignee:
    Shane Isbell
    Reporter:
    Shane Isbell
Vote (0)
Watch (0)

Dates

  • Created:
    27/Jan/09 7:46 PM
    Updated:
    21/Nov/10 12:47 PM
    Resolved:
    27/Jan/09 11:45 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.