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

Better DuplicateProjectException error message

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0
    • None
    • None
    • None

    Description

      This was originally reported against as https://issues.sonatype.org/browse/TYCHO-531. When the same pom.xml file is referenced from multiple <module/> element, the build fails with rather unhelpful error message like

      [ERROR] Two or more projects in the reactor have the same identifier, please make sure that <groupId>:<artifactId>:<version> is unique for each project: {org.jboss.tools.build:org.jboss.tools.build.libs:1.0.0-SNAPSHOT=[/qa/hudson_ws/workspace/jbosstools-3.2.0.Beta2.tests/sources/build/libs/pom.xml, /qa/hudson_ws/workspace/jbosstools-3.2.0.Beta2.tests/sources/build/libs/pom.xml]}
      

      To help user troubleshoot the problem, we need to provide pom.xml and ideally line numbers that reference the same module.

      Attachments

        Activity

          People

            Unassigned Unassigned
            igorf Igor Fedorenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: