You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "John Casey (JIRA)" <ji...@codehaus.org> on 2005/11/16 21:39:06 UTC
[jira] Closed: (MNG-1394) Use of the RelativePath Multi-Module produces failure
[ http://jira.codehaus.org/browse/MNG-1394?page=all ]
John Casey closed MNG-1394:
---------------------------
Resolution: Fixed
Applied, with added debug statement in case of a directory relativePath, to let the user know we're looking for 'pom.xml' in that dir.
Thanks, Edwin.
> Use of the RelativePath Multi-Module produces failure
> -----------------------------------------------------
>
> Key: MNG-1394
> URL: http://jira.codehaus.org/browse/MNG-1394
> Project: Maven 2
> Type: Bug
> Components: maven-core
> Versions: 2.0
> Environment: Windows XP
> Reporter: Peter Pilgrim
> Assignee: Edwin Punzalan
> Fix For: 2.0.1
> Attachments: MNG-1394-maven-project.patch
>
>
> Run maven with the pom.xml that explicitly set the <relativePath> element inside the
> parent <parent> element causes a stacktrace failure
> C:\Projects\bridgetown\core>mvn compile
> [INFO] Scanning for projects...
> [INFO] -------------------------------------------------------------------------
> ---
> [ERROR] FATAL ERROR
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Error building POM (may not be this project's POM).
> Project ID: com.xenonsoft.bridgetown:bridgetown-core
> Reason: Could not find the model file 'C:\Projects\bridgetown'.
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Trace
> org.apache.maven.reactor.MavenExecutionException: Could not find the model file
> 'C:\Projects\bridgetown'.
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:359)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:276)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> 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: Could not find the
> model file 'C:\Projects\bridgetown'.
> at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1061)
> at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
> efaultMavenProjectBuilder.java:899)
> at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:586)
> at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
> le(DefaultMavenProjectBuilder.java:298)
> at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
> nProjectBuilder.java:276)
> at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:509)
> at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:441)
> at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:345)
> ... 11 more
> Caused by: java.io.FileNotFoundException: C:\Projects\bridgetown (Access is deni
> ed)
> at java.io.FileInputStream.open(Native Method)
> at java.io.FileInputStream.<init>(FileInputStream.java:106)
> at java.io.FileReader.<init>(FileReader.java:55)
> at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(Default
> MavenProjectBuilder.java:1056)
> ... 18 more
> [INFO] -------------------------------------------------------------------------
> ---
> [INFO] Total time: < 1 second
> [INFO] Finished at: Wed Nov 02 10:22:16 GMT 2005
> [INFO] Final Memory: 1M/2M
> [INFO] -------------------------------------------------------------------------
> ---
> C:\Projects\bridgetown\core>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
> <parent>
> <artifactId>bridgetown</artifactId>
> <groupId>com.xenonsoft.bridgetown</groupId>
> <version>0.9.8-SNAPSHOT</version>
> <relativePath>..</relativePath>
> </parent>
> <modelVersion>4.0.0</modelVersion>
> <groupId>com.xenonsoft.bridgetown</groupId>
> <artifactId>bridgetown-core</artifactId>
> ...
> </parent>
> If I remove the relativePath element or comment it out. Mvn2 works successfully.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org