Hi,
I'm trying to get the reactor plugin to work for our project structure
(simplified version):
project-root/
/modules
pom.xml
/A
/api
/impl
/B
/api
/impl
/root-pom/pom.xml
The root-pom/pom.xml contains a modules section that just references the
project modules
<modules>
<module>../modules</module>
</modules>
Now, from the root-pom directory I do "mvn reactor-make
-Dmake.artifacts=A-api" which should normally trigger B-api,A-api to be
built. Instead i get
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Problem generating dependency tree
Embedded error: Roots differ
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Problem generating
dependency tree
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:701)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:551)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:521)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:369)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:266)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
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.plugin.MojoExecutionException: Problem
generating dependency tree
at
org.apache.maven.plugin.reactor.MakeMojo.execute(MakeMojo.java:168)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:676)
... 16 more
Caused by:
org.apache.maven.plugin.reactor.RelativePather$DifferentRootsException:
Roots differ
at
org.apache.maven.plugin.reactor.RelativePather.getRelativePath(RelativePather.java:41)
at
org.apache.maven.plugin.reactor.MakeMojo.execute(MakeMojo.java:159)
... 18 more
[INFO]
------------------------------------------------------------------------
Any ideas ?
Jorg