Maven
  1. Maven
  2. MNG-4898

Better DuplicateProjectException error message

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Intermediate
    • Number of attachments :
      0

      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.

        Activity

        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
        Hide
        Jason van Zyl added a comment -

        Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

        Show
        Jason van Zyl added a comment - Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014 if you're wondering why this issue was closed out.

          People

          • Assignee:
            Unassigned
            Reporter:
            Igor Fedorenko
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: