[ http://jira.codehaus.org/browse/SCM-116?page=comments#action_77882 ] 
            
David Boden commented on SCM-116:
---------------------------------

Perhaps the goal could be acheived simply by:

1. Check whether any of the sub-modules that are mentioned in the aggregator 
pom are beneath the aggregator in the subproject.
2. If they are, then exclude them from the aggregator cvs update.
3. Iterate through each of the subprojects running the same algorithm.

This would work both for the hierarchy case and for the flat case. In the flat 
case it would update the entire directory of the aggregator pom and would then 
iterate through the directories of the sub-modules.

This behaviour is far more correct than the current behaviour. At the moment, 
if each of the sub-modules specifies a different version / CVS tag to check 
out, this will not be supported by the scm module. You can only check out one 
tag of the whole project because only one CVS command is issues (from the 
aggregator pom).

> scm:update doesn't iterate through multi-projects
> -------------------------------------------------
>
>                 Key: SCM-116
>                 URL: http://jira.codehaus.org/browse/SCM-116
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-plugin
>    Affects Versions: 1.0-beta-2
>            Reporter: David Boden
>             Fix For: 1.0
>
>         Attachments: UpdateSubprojectsMojo.java
>
>
> scm:update doesn't iterate through projects
> ----
> C:\dev\CDSSS>mvn scm:update
> [INFO] Scanning for projects...
> [INFO] Reactor build order:
> [INFO]   SalesStation ss_base_shared
> [INFO]   SalesStation cds_ss_shared
> [INFO]   SalesStation ss_offering_shared
> [INFO]   SalesStation ss_base_applet
> [INFO]   SalesStation sales_station_lib
> [INFO]   SalesStation ss_offering_lib
> [INFO]   SalesStation sales_station_applet
> [INFO]   SalesStation cds_ss_applet
> [INFO]   SalesStation cds_ss_lib
> [INFO]   SalesStation SS webapp
> [INFO]   SalesStation FET_S webapp (contains images)
> [INFO]   SalesStation CDSSS webapp
> [INFO] Searching repository for plugin with prefix: 'scm'.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Building SalesStation CDSSS webapp
> [INFO]    task-segment: [scm:update] (aggregator-style)
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] [scm:update]
> [INFO] Executing: cvs -f -q update -d
> [INFO] Working directory: C:\dev\CDSSS
> [WARNING] Unknown status: '? '.
> [WARNING] Unknown status: 'M '.
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO] 
> ----------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Thu Dec 15 10:38:24 GMT 2005
> [INFO] Final Memory: 3M/7M
> [INFO] 
> ----------------------------------------------------------------------------
> C:\dev\CDSSS>
> ----
> Any reason why it doesn't iterate? I'm using Maven 2.0.1 and SCM version 
> 1.0-beta-2. Thanks.

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