[jira] Commented: (MREACTOR-9) Embedded error: roots differ error on simple project
[ http://jira.codehaus.org/browse/MREACTOR-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149342#action_149342 ] Jorg Heymans commented on MREACTOR-9: - actually, there might be something environment specific here that is causing the exception. When i execute the first command again, but now from plain DOS i get something else: {code} D:\tmp\reactor-bug\root-pom>mvn reactor:make -Dmake.artifacts=B-api [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] myProject [INFO] A api [INFO] A impl [INFO] A-modules [INFO] B api [INFO] B impl [INFO] B-modules [INFO] myProject-modules [INFO] Searching repository for plugin with prefix: 'reactor'. [INFO] [INFO] Building myProject [INFO]task-segment: [reactor:make] (aggregator-style) [INFO] [INFO] [reactor:make] [INFO] Executing: cmd.exe /X /C "D:\tools\maven2\bin\mvn.bat -B -N -r -D maven.reactor.includes=..\modules\B\api\pom.xml install" [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [install] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: 1 second [INFO] Finished at: Tue Sep 30 09:20:15 CEST 2008 {code} Now from the modules directory, when i do mvn reactor:make -Dmake.artifacts=B-api and mvn reactor:make -Dmake.folders=B/api both work ! > Embedded error: roots differ error on simple project > > > Key: MREACTOR-9 > URL: http://jira.codehaus.org/browse/MREACTOR-9 > Project: Maven 2.x Reactor Plugin > Issue Type: Bug >Affects Versions: 1.0 > Environment: cygwin >Reporter: Jorg Heymans > Attachments: reactor-bug.tar.gz > > > Unpack the attached project, go to the root-pom directory and do mvn > reactor:make -Dmake.artifacts=B-api : > {code} > $ mvn reactor:make -Dmake.artifacts=B-api > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] myProject > [INFO] A api > [INFO] A impl > [INFO] A-modules > [INFO] B api > [INFO] B impl > [INFO] B-modules > [INFO] myProject-modules > [INFO] Searching repository for plugin with prefix: 'reactor'. > [INFO] > > [INFO] Building myProject > [INFO]task-segment: [reactor:make] (aggregator-style) > [INFO] > > [INFO] [reactor:make] > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Problem generating dependency tree > Embedded error: Roots differ > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 3 seconds > [INFO] Finished at: Tue Sep 30 09:18:16 CEST 2008 > [INFO] Final Memory: 7M/13M > [INFO] > > {code} > or go to the modules directory and do make.folders=B/api : > {code} > $ mvn reactor:make -Dmake.folders=B/api > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] A api > [INFO] A impl > [INFO] A-modules > [INFO] B api > [INFO] B impl > [INFO] B-modules > [INFO] myProject-modules > [INFO] Searching repository for plugin with prefix: 'reactor'. > [INFO] > > [INFO] Building myProject-modules > [INFO]task-segment: [reactor:make] (aggregator-style) > [INFO] > > [INFO] [reactor:make] > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] No folders matched: B/api > [INFO] > -
[jira] Commented: (MREACTOR-9) Embedded error: roots differ error on simple project
[ http://jira.codehaus.org/browse/MREACTOR-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=149413#action_149413 ] Dan Fabulich commented on MREACTOR-9: - Yes, it seems very likely that cygwin is causing the problem. The "plain DOS" results ("Cannot execute mojo: resources") are what I see on my machine also, and is what I would expect due to MREACTOR-1. I'll try to repro the problem on cygwin. > Embedded error: roots differ error on simple project > > > Key: MREACTOR-9 > URL: http://jira.codehaus.org/browse/MREACTOR-9 > Project: Maven 2.x Reactor Plugin > Issue Type: Bug >Affects Versions: 1.0 > Environment: cygwin >Reporter: Jorg Heymans > Attachments: reactor-bug.tar.gz > > > Unpack the attached project, go to the root-pom directory and do mvn > reactor:make -Dmake.artifacts=B-api : > {code} > $ mvn reactor:make -Dmake.artifacts=B-api > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] myProject > [INFO] A api > [INFO] A impl > [INFO] A-modules > [INFO] B api > [INFO] B impl > [INFO] B-modules > [INFO] myProject-modules > [INFO] Searching repository for plugin with prefix: 'reactor'. > [INFO] > > [INFO] Building myProject > [INFO]task-segment: [reactor:make] (aggregator-style) > [INFO] > > [INFO] [reactor:make] > [INFO] > > [ERROR] BUILD ERROR > [INFO] > > [INFO] Problem generating dependency tree > Embedded error: Roots differ > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 3 seconds > [INFO] Finished at: Tue Sep 30 09:18:16 CEST 2008 > [INFO] Final Memory: 7M/13M > [INFO] > > {code} > or go to the modules directory and do make.folders=B/api : > {code} > $ mvn reactor:make -Dmake.folders=B/api > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] A api > [INFO] A impl > [INFO] A-modules > [INFO] B api > [INFO] B impl > [INFO] B-modules > [INFO] myProject-modules > [INFO] Searching repository for plugin with prefix: 'reactor'. > [INFO] > > [INFO] Building myProject-modules > [INFO]task-segment: [reactor:make] (aggregator-style) > [INFO] > > [INFO] [reactor:make] > [INFO] > > [ERROR] BUILD FAILURE > [INFO] > > [INFO] No folders matched: B/api > [INFO] > > [INFO] For more information, run Maven with the -e switch > [INFO] > > [INFO] Total time: 4 seconds > [INFO] Finished at: Tue Sep 30 09:16:14 CEST 2008 > [INFO] Final Memory: 7M/14M > [INFO] > > {code} -- 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
[jira] Commented: (MREACTOR-9) Embedded error: roots differ error on simple project
[ http://jira.codehaus.org/browse/MREACTOR-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=240191#action_240191 ] Juan Cruz Nores commented on MREACTOR-9: I'm having the same problem on OSX, so I'm not so sure that it's environment-specific: {noformat} + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] myProject [INFO] A api [INFO] A impl [INFO] A-modules [INFO] B api [INFO] B impl [INFO] B-modules [INFO] myProject-modules [INFO] Searching repository for plugin with prefix: 'reactor'. [INFO] [INFO] Building myProject [INFO]task-segment: [reactor:make] (aggregator-style) [INFO] [INFO] [reactor:make {execution: default-cli}] [INFO] Executing: /bin/sh -c cd /Users/juancn/Downloads/reactor-bug/root-pom && /usr/share/java/maven-2.2.0/bin/mvn -B -N -r -D maven.reactor.includes=../modules/B/api/pom.xml install [INFO] Scanning for projects... [INFO] [INFO] Building Maven Default Project [INFO]task-segment: [install] [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Cannot execute mojo: resources. It requires a project with an existing pom.xml, but the build is not using one. [INFO] [INFO] For more information, run Maven with the -e switch [INFO] [INFO] Total time: < 1 second [INFO] Finished at: Tue Oct 19 19:33:15 BRST 2010 [INFO] Final Memory: 6M/81M [INFO] [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Maven build failed: Exit code was 1 [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Maven build failed: Exit code was 1 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:703) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:553) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:523) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:371) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:181) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:41) 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:597) 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.reactor.SimpleInvoker$InvokerExecutionException: Maven build failed: Exit code was 1 at org.apache.maven.plugin.reactor.SimpleInvoker.runReactor(SimpleInvoker.java:77) at org.apache.maven.plugin.reactor.MakeMojo.execute(MakeMojo.java:184) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:483) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:678) ... 17 more Caused by: org.apache.maven.plugin.reactor.SimpleInvoker$InvokerExecutionException: Exit code was 1 at org.apache.maven.plugin.reactor.SimpleInvoker.runReactor(SimpleInvoker.java:73) ... 20 more [INFO] [INFO] Total time: 3 seconds [INFO] Finished at: Tue Oct 19