简体   繁体   中英

maven release plugin hanging

I'm trying to release a CVS project with the mvn release plugin.

I've succeeded with mvn release:prepare but when I run release:perform it hangs due to what seems to be a leading slash on the CVS module

/cust/shared_code

[INFO] [release:perform {execution: default-cli}]
[INFO] Checking out the project to perform the release ...
[INFO] Executing: /bin/sh -c cd /home/jmorgan/cvs_src/HEAD/cust-repo/cust/shared_code/target && cvs -z3 -f -d :pserver:jmorgan@pserver:/cvsroot-cust -q checkout -r cust-shared_code-8_0_4 -d checkout /cust/shared_code
[INFO] Working directory: /home/jmorgan/cvs_src/HEAD/cust-repo/cust/shared_code/target

This hangs...

Removing the slash

/bin/sh -c cd /home/jmorgan/cvs_src/HEAD/cust-repo/cust/shared_code/target && cvs -z3 -f -d :pserver:jmorgan@pserver:/cvsroot-cust -q checkout -r cust-shared_code-8_0_4 -d checkout cust/shared_code
U checkout/acct-dcash-xml
U checkout/acct-dcash
U checkout/acct_qry
U checkout/acct_totals
...

This starts checking out as i'd expect

My maven-scm-plugin v1.8.1 settings are

<scm>
<connection>scm:cvs:pserver:${env.USER}:${password}@pserver:/cvsroot-cust:cust/shared_code</connection>
<developerConnection>scm:cvs:pserver:${env.USER}:${password}@pserver:/cvsroot-cust:cust/shared_code</developerConnection>
</scm>

 <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-scm-plugin</artifactId>
            <configuration>
                <providerImplementations>
                    <cvs>cvs_native</cvs>
                </providerImplementations>
            </configuration>
        </plugin>

It looks like its related to http://jira.codehaus.org/browse/SCM-216 though this was apparently fixed in 1.0-beta-4

Any help would be most appreciated

James

---- UPDATE

It seems my release.properties is incorrect

#release configuration
#Fri Feb 15 14:58:18 GMT 2013
project.dev.com.cust.shared\:cust-shared_code=8.0.5-SNAPSHOT
scm.tag=cust-shared_code-8_0_4
scm.url=scm\:cvs\:pserver\:jmorgan\:${password}@pserver\:/cvsroot-cust\:/cust/shared_code
preparationGoals=clean verify
project.rel.com.cust.shared\:cust-shared_code=8.0.4
scm.commentPrefix=[maven-release-plugin]
project.scm.com.cust.shared\:cust-shared_code.tag=HEAD
project.scm.com.cust.shared\:cust-shared_code.developerConnection=scm\:cvs\:pserver\:builder\:${password}@pserver\:/cvsroot-cust\:/cust/shared_code
project.scm.com.cust.shared\:cust-shared_code.connection=scm\:cvs\:pserver\:builder\:${password}@pserver\:/cvsroot-cust\:cust/shared_code
exec.additionalArguments=-P artifactory
completedPhase=end-release

Though unsure how to correct this

I resolved this issue as I mentioned in my last comment by updating to the latest version of all the plugins. maven-release-plugin v2.4 and maven-scm-provider-cvs v1.8

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM