Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.0
-
Fix Version/s: None
-
Labels:None
-
Environment:cygwin
-
Number of attachments :
Description
Unpack the attached project, go to the root-pom directory and do mvn reactor:make -Dmake.artifacts=B-api :
$ 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] ------------------------------------------------------------------------
or go to the modules directory and do make.folders=B/api :
$ 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] ------------------------------------------------------------------------
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:
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 !