[ https://jira.codehaus.org/browse/MNG-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=351861#comment-351861 ]
Brian Brooks edited comment on MNG-5682 at 8/26/14 9:00 AM: ------------------------------------------------------------ I've encountered this error before and it was a copy-paste mistake when setting up a new project. My project layout looked like {noformat} \---super \---thirdparty +---mod1-root | +---mod1-linux32 | \---mod1-win32 \---mod2-root +---mod2-linux32 \---mod2-win32 {noformat} In my case, I had a mistake in my pom.xmls at the modX-root-level. I had copied the mod1-root tree and named it mod2-root. I thought I had updated all the pom.xmls appropriately. In fact, mod2-root/pom.xml had the same group and artifact ids as mod1-root/pom.xml. After correcting mod2-root's pom.xml to have mod2-root specific maven coordinates my issue was resolved. This info was originally posted by me here: http://stackoverflow.com/a/23201278/110126 was (Author: bbrooks): I've encountered this error before and it was a copy-paste mistake when setting up a new project. My project layout looked like \---super \---thirdparty +---mod1-root | +---mod1-linux32 | \---mod1-win32 \---mod2-root +---mod2-linux32 \---mod2-win32 In my case, I had a mistake in my pom.xmls at the modX-root-level. I had copied the mod1-root tree and named it mod2-root. I thought I had updated all the pom.xmls appropriately. In fact, mod2-root/pom.xml had the same group and artifact ids as mod1-root/pom.xml. After correcting mod2-root's pom.xml to have mod2-root specific maven coordinates my issue was resolved. This info was originally posted by me here: http://stackoverflow.com/a/23201278/110126 > Parent POMs not resolved in multi-module project > ------------------------------------------------ > > Key: MNG-5682 > URL: https://jira.codehaus.org/browse/MNG-5682 > Project: Maven > Issue Type: Bug > Components: Bootstrap & Build > Affects Versions: 3.0.4, 3.1.1, 3.2.3 > Environment: Apache Maven 3.2.3 > (33f8c3e1027c3ddde99d3cdebad2656a31e8fdf4; 2014-08-11T22:58:10+02:00) > Java version: 1.7.0_67, vendor: Oracle Corporation > Default locale: en_US, platform encoding: Cp1250 > OS name: "windows 7", version: "6.1", arch: "x86", family: "windows" > Reporter: Kek > Priority: Critical > Attachments: test-project.zip > > > I have multi-module project - I attach the similar simple project structure > to this issue, to simulate the problem => !test-project.zip!. > The structure is: > {noformat} > A - aggregating project, parent for "parent" > |_parent - parent for B and C > |_B > |_C > {noformat} > In reality we have more parents under A for diferent types of A-submodules, > but now it does not matter. > When we run build under maven 2.2.1 - everything is OK, the reactor sorts > the projects like A, PARENT, B,C and build success. > When we run the same build under maven 3.x (3.0.4, 3.1.1, 3.2.3 was tested), > the build fails with following errors: > a>mvn clean > [INFO] Scanning for projects... > [ERROR] The build could not read 2 projects -> [Help 1] > [ERROR] > [ERROR] The project a:b:[unknown-version] (\a\b\pom.xml) has 1 error > [ERROR] Non-resolvable parent POM: Could not find artifact > a:parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local > POM @ line 6, column 10 -> [Help 2] > [ERROR] > [ERROR] The project a:c:[unknown-version] (\a\c\pom.xml) has 1 error > [ERROR] Non-resolvable parent POM: Could not find artifact > a:parent:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local > POM @ line 6, column 10 -> [Help 2] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e > switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please > read the following articles: > [ERROR] [Help 1] > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException > [ERROR] [Help 2] > http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException > There is no explicit "relativePath" set in project POMs. -- This message was sent by Atlassian JIRA (v6.1.6#6162)