[ http://jira.codehaus.org/browse/CONTINUUM-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_86942 ]
Joseph Heck commented on CONTINUUM-1152: ---------------------------------------- Doing more digging into the logs and code, here's what I've found: When the Continuum server slips from one project to another, it uses the built in "SCM.checkout" command to check out the indicated project to a working directory. In the background, the org.apache.maven.scm setup attempts to re-use the original client, so it updates the client - resulting in all of the previous project being "removed" and then the new project "added". When the client is updated as such, it "appears" to have changes, and therefore always invokes a build. This change appears to be related to SCM-113 (http://jira.codehaus.org/browse/SCM-113). At the tail end of that particular bug, there is commentary talking about the impact to this specific issue. The resulting bug that was filed in Continuum was CONTINUUM-584 (http://jira.codehaus.org/browse/CONTINUUM-584), which is reported as fixed. (commit #376470 according to JIRA). That change IS in place, but it doesn't necessarily appear to be having the desired effect. The result is that the single client spec gets updated constantly, but new client specs aren't getting created for each build. This is, unfortunately, exactly how the SCM undersystem is built. > Using multiple Ant projects with Continuum and Perforce SCM - the perforce > views are incorrectly created > -------------------------------------------------------------------------------------------------------- > > Key: CONTINUUM-1152 > URL: http://jira.codehaus.org/browse/CONTINUUM-1152 > Project: Continuum > Issue Type: Bug > Components: SCM > Affects Versions: 1.0.3 > Environment: Windows Server 2003 > Ant 1.6.5 > Maven 2.0.4 > Continuum 1.0.3 > JDK 1.5.0_06 > Reporter: Joseph Heck > > Using multiple Ant projects with Continuum and Perforce SCM - the perforce > views are incorrectly created > The first client created automagically works correctly. > The second project generates a client that references the first. From the log > files: > 1052282 [Thread-3] INFO org.apache.maven.continuum.scm.ContinuumScm - > Checking out project: 'GUR - Crc Generator', id: '2' to > 'C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2'. > 1052282 [Thread-3] INFO org.apache.maven.scm.manager.ScmManager - Checkout > working directory: > C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2 > 1052282 [Thread-3] INFO org.apache.maven.scm.manager.ScmManager - > Executing: p4 client -i > 1052282 [Thread-3] DEBUG org.apache.maven.scm.manager.ScmManager - Updating > clientspec: > Client: > webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1 > Root: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\2 > Owner: webguest > View: > //p4-tss/gur/Development/CrcGenerator/1.0/... > //webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1/... > Description: > Created by maven-scm-provider-perforce > This client that has been generated should be references > working-directory\2/... not 1 > Adding a third project shows that it also references the first "client": > 1080922 [Thread-3] INFO org.apache.maven.continuum.scm.ContinuumScm - > Checking out project: 'GUR - Crc Local', id: '3' to > 'C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3'. > 1080922 [Thread-3] INFO org.apache.maven.scm.manager.ScmManager - Checkout > working directory: > C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3 > 1080922 [Thread-3] INFO org.apache.maven.scm.manager.ScmManager - > Executing: p4 client -i > 1080922 [Thread-3] DEBUG org.apache.maven.scm.manager.ScmManager - Updating > clientspec: > Client: > webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1 > Root: C:\continuum-1.0.3\bin\win32\..\..\apps\continuum\working-directory\3 > Owner: webguest > View: > //p4-tss/gur/Development/CrcLocalApi/1.0/... > //webguest-sepoe-build2-MavenSCM-C:\continuum-1.0.3\apps\continuum\working-directory\1/... > Description: > Created by maven-scm-provider-perforce > I haven't yet dug into the code to determine where the client view gets set, > but that appears to be where the mistake is being made. -- 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