Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.3
-
None
-
None
Description
If you are building Apache Aries from scratch with Maven 3 using the instructions from http://incubator.apache.org/aries/buildingaries.html
it fails at the 'mvn clean' step with several errors like:
[ERROR] The project org.apache.aries:eba-maven-plugin:0.3-incubating-SNAPSHOT (/home/godwins/aries/aries/eba-maven-plugin/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.apache.aries:java5-parent:pom:0.3-incubating-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 25, column 13 -> [Help 2]
Even with the Aries parent project already installed in the Maven repository several warnings about the parent ID not matching the path appear.
Reading the compatibility notes for Maven 3 (https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html) it appears we need a relativePath element in the parent section of the pom.xml files.
I have a patch that fixes this problem which I will attach to this defect.
I have tested that with the patch applied to revision 1035298 Aries continues to build with Maven 2 and also now builds with Maven 3.