2

我正在尝试使用 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

虽然不确定如何纠正这个

4

1 回答 1

0

正如我在上一条评论中提到的,我通过更新到所有插件的最新版本解决了这个问题。maven-release-plugin v2.4 和 maven-scm-provider-cvs v1.8

于 2013-02-18T14:19:47.123 回答