[ 
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] 
> ------------------------------------------------------------------------
> [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

        

Reply via email to