Better DuplicateProjectException error message
----------------------------------------------

                 Key: MNG-4898
                 URL: http://jira.codehaus.org/browse/MNG-4898
             Project: Maven 2 & 3
          Issue Type: Improvement
    Affects Versions: 3.0
            Reporter: Igor Fedorenko


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 

{noformat}
[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]}
{noformat}

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


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to