continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "spam@endspace.com" <s...@endspace.com>
Subject Problems compiling multi modules projects
Date Thu, 24 Jan 2008 09:42:51 GMT
Hi, i have a problem compiling my projects under continuum using the top
parent of my projects. I remove the --non-recursive flag on the build
directive of my top projects.
My projects looks like this:
Maven
|_pom.xml
Project_A
|_pom.xml
Project_B
|_pom.xml
Project_C
|_pom.xml


The pom.xml of the Maven project looks like this:
...
    <modules>
        <module>../Project_A</module>
        <module>../Project_B/module>
        <module>../Project_C </module>
    </modules>
...

The pom.xml of the modules projects looks like this:
...
    <parent>
        <groupId>mygroup</groupId>
        <artifactId>Maven</artifactId>
        <version>1.0</version>
        <relativePath>../Maven/pom.xml</relativePath>
    </parent>
...


When i launch the build onto the Maven project, i have the following error:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR

[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: unknown

Reason: Could not find the model file '/opt/apache-
tomcat-5.5.25/webapps/continuum/WEB-INF/working-directory/53/../Project_A/pom.xml'.
for project unknown


[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException
: Could not find the model file
'/opt/apache-tomcat-5.5.25/webapps/continuum/WEB-INF/working-directory/53/../Project_A/pom.xml'.
for project unknown
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java
:376)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
	at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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: Could
not find the model file
'/opt/apache-tomcat-5.5.25/webapps/continuum/WEB-INF/working-directory/53/../Project_A/pom.xml'.
for project unknown

	at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1381)
	at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java
:474)
	at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:197)
	at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548)
	at org.apache.maven.DefaultMaven.collectProjects
(DefaultMaven.java:458)
	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:524)
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362)
	... 11 more
Caused by: java.io.FileNotFoundException
: /opt/apache-tomcat-5.5.25/webapps/continuum/WEB-INF/working-directory/53/../Project_A/pom.xml
(No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.&lt;init&gt;(
FileInputStream.java:106)
	at hidden.org.codehaus.plexus.util.xml.XmlReader.&lt;init&gt;(XmlReader.java:123)
	at hidden.org.codehaus.plexus.util.xml.XmlStreamReader.&lt;init&gt;(XmlStreamReader.java:67)

	at hidden.org.codehaus.plexus.util.ReaderFactory.newXmlReader(ReaderFactory.java:113)
	at org.apache.maven.project.DefaultMavenProjectBuilder.readModel(DefaultMavenProjectBuilder.java:1376)
	... 17 more
[INFO] ------------------------------------------------------------------------

[INFO] Total time: &lt; 1 second
[INFO] Finished at: Thu Jan 24 11:11:43 CET 2008
[INFO] Final Memory: 11M/64M
[INFO] ------------------------------------------------------------------------


The relative path is the issue, but it's a maven architecture. Is continuum
capable of manage a such architecture?

Thanks for your answers.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message