[ 
https://jira.codehaus.org/browse/MNG-5682?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=354097#comment-354097
 ] 

John Wu commented on MNG-5682:
------------------------------

Got similar issue here.

My workaround is to build and install the parent pom first, then build the rest 
modules.

Ideally, if the parent pom is in the reactor build plan, the reactor should 1) 
build the parent pom prior to build its child modules, 2) pick up the parent 
pom from within the reactor and use it for the child modules.

> 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: Minor
>         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)

Reply via email to