Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-4013

DuplicateArtifactAttachmentException On Building Test Jar

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0-alpha-2
    • 3.0-alpha-2
    • None
    • None

    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)

      Attachments

        Issue Links

          Activity

            People

              sisbell Britton Isbell
              sisbell Britton Isbell
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: