簡體   English   中英

Maven發布插件掛

[英]maven release plugin hanging

我正在嘗試使用mvn release插件發布CVS項目。

我已經成功使用mvn release:prepare了,但是當我運行release:perform時,它掛起了,原因是CVS模塊上的斜杠

/ 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

這掛...

去除斜線

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

這開始檢查出我所期望的

我的maven-scm-plugin v1.8.1設置是

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

它似乎與http://jira.codehaus.org/browse/SCM-216有關,盡管它顯然已在1.0-beta-4中修復。

非常感激任何的幫助

詹姆士

----更新

看來我的release.properties不正確

#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

雖然不確定如何糾正

正如我在上一條評論中提到的,我通過更新到所有插件的最新版本來解決了這個問題。 maven-release-plugin v2.4和maven-scm-provider-cvs v1.8

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM