relativePath tag doesn't work correctly
---------------------------------------
Key: MNG-2944
URL: http://jira.codehaus.org/browse/MNG-2944
Project: Maven 2
Issue Type: Bug
Affects Versions: 2.0.6
Environment: WinXP Pro, Sun JDK 1.6b2, Maven 2.0.6
Reporter: Stefano Lenzi
The parent / relativePath tag seems to buggy, because sometimes it generates a
path that ends with ../pom.xml instead of pom.xml
I'll add some example:
1st Case: WORKS OK
Child POM:
<parent>
<artifactId>felix</artifactId>
<groupId>org.apache.felix</groupId>
<version>0.9.0-incubator-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>
Genereted Path:
[WARNING] Unable to load parent project from repository: Could not find the
model file
'D:\Progetti\Felix\trunk\tools\maven2\maven-bundle-plugin\..\..\pom.xml'.
2nd Case: WORKS BAD
Child POM:
<parent>
<artifactId>felix</artifactId>
<groupId>org.apache.felix</groupId>
<version>0.9.0-incubator-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
Genereted Path:
[WARNING] Unable to load parent project from repository: Could not find the
model file
'D:\Progetti\Felix\trunk\tools\maven2\maven-bundle-plugin\..\..\..\..\pom.xml'.
3rd Case: WORKS BAD
Child POM:
<parent>
<artifactId>felix</artifactId>
<groupId>org.apache.felix</groupId>
<version>0.9.0-incubator-SNAPSHOT</version>
<relativePath>../../../../trunk/pom.xml</relativePath>
</parent>
Genereted Path:
[WARNING] Unable to load parent project from repository: Could not find the
model file
'D:\Progetti\Felix\trunk\tools\maven2\maven-bundle-plugin\..\..\..\..\trunk\..\pom.xml'.
--
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