You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Gross, Ryan (GE Healthcare)" <Ry...@ge.com> on 2007/06/25 18:57:13 UTC
Problems with parent relative path resolution under maven 2.0.6
I recently upgraded from 2.0.3 to 2.0.6 because of a bug in the
cargo plugin that required at least maven 2.0.4 for the fixed version.
However, since upgrading I have been unable to build any of my projects.
I am getting the exception below even though there is a relative path
specified for the parent. The POM file has not changed, and the build
worked in 2.0.3. The parent section of the POM file for the project I
am trying to build is:
<parent>
<groupId>csf</groupId>
<artifactId>dot-net</artifactId>
<version>0.5</version>
<relativePath>..\..\..\csf_infra\config\dot-net.pom</relativePath>
</parent>
The error message under 2.0.6 is:
[INFO] Scanning for projects...
Downloading:
http://3.20.163.216:8080/px-webapp/repository/public/csf/j2ee/0.5/j2ee-0
.5.pom
[WARNING] Unable to get resource from repository central
(http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: csf
ArtifactId: j2ee
Version: 0.5
Reason: Unable to download the artifact from any repository
csf:j2ee:pom:0.5
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
csf:j2ee for project: com.ge.med.iits:SimpleSite:
ar:0.5
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:278)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot
find parent: csf:j2ee for project: com.ge.med.iits
SimpleSite:war:0.5
at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(Defa
ultMavenProjectBuilder.java:1139)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Defaul
tMavenProjectBuilder.java:672)
at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileI
nternal(DefaultMavenProjectBuilder.j
va:414)
at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenPr
ojectBuilder.java:190)
at
org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:515)
at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:447)
at
org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:351)
... 11 more
[...]
Ryan Gross T:
847-277-4016
Global Service Productivity M:
312-504-2792
GE HealthCare Integrated IT D: *567-4016
Re: Problems with parent relative path resolution under maven 2.0.6
Posted by Thorsten Heit <th...@gmx.de>.
Hi,
Am 25.06.2007 um 18:57 schrieb Gross, Ryan (GE Healthcare):
> I recently upgraded from 2.0.3 to 2.0.6 because of a bug in the
> cargo plugin that required at least maven 2.0.4 for the fixed version.
> However, since upgrading I have been unable to build any of my
> projects.
> I am getting the exception below even though there is a relative path
> specified for the parent. The POM file has not changed, and the build
> worked in 2.0.3. The parent section of the POM file for the project I
> am trying to build is:
>
> <parent>
> <groupId>csf</groupId>
> <artifactId>dot-net</artifactId>
> <version>0.5</version>
> <relativePath>..\..\..\csf_infra\config\dot-net.pom</relativePath>
> </parent>
Just a guess: Have you tried to use forward slashes instead of
backslashes? Perhaps a "\" is used for quoting the next character
since 2.0.4...?
HTH
Thorsten