使用 MAVEN ANT 插件的 CVS Checkout [英] CVS Checkout using MAVEN ANT plugin

查看:32
本文介绍了使用 MAVEN ANT 插件的 CVS Checkout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找以下内容.

如何使用 MAVEN ANT 插件从 CVS 中检出代码

How to checkout code from CVS using MAVEN ANT plugin

我的 CVS 服务器名称:cecvs02dv 可以使用用户名和密码访问(不能通过 HTTP 访问)

My CVS server name:cecvs02dv which can be accessed using user name and password (and cannot be accessed over HTTP)

CVS 文件夹:c:\cvs\dev

CVS folder: c:\cvs\dev

模块名称:IRM

我可以在 Windows 命令提示符下使用以下 CVS 命令连接到 CVS.

I can connect to CVS using below CVS command from Windows command prompt.

/>cvs -z3 -f -d :pserver:user:password@cecvs02dv:2401:c:\cvs\dev -q checkout -d checkout IRM

使用上面的命令,我可以从 CVS 服务器检出代码.

Using above command I am able to checkout the code from CVS server.

pom.xml::ANT Maven 插件

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <executions>
                <execution>
                    <id>ftp</id>
                    <phase>install</phase>
                    <configuration>
                        <tasks>

<cvspass cvsroot=":pserver:user@cecvs02dv:c:/cvs/dev/" password="password"/> 
    <cvs cvsroot="c:/cvs/dev" quiet="false"   
        command="checkout" package="IRM" port="2401"  
            dest="D:/vinu/workspace/Maven/testirm"  />

                        </tasks>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
            <dependencies>
                <dependency>
                    <groupId>org.apache.ant</groupId>
                    <artifactId>ant-jsch</artifactId>
                    <version>1.9.4</version>
                </dependency>
            </dependencies>
        </plugin>

错误: [cvs] cvs [checkout aborted]: c:/cvs/dev/CVSROOT: 没有那个文件或目录

Error: [cvs] cvs [checkout aborted]: c:/cvs/dev/CVSROOT: No such file or directory

CVSROOT 文件夹存在于 CVS 服务器上的 c:/cvs/dev/中.

CVSROOT folder exists in c:/cvs/dev/ on CVS server.

推荐答案

问题终于解决了.

将目录从 c:/cvs/dev/ 更改为 c:\cvs\dev

<cvspass cvsRoot=":pserver:username@cecvs02dv:c:\cvs\dev" password="password"/> 
<cvs cvsRoot=":pserver:username@cecvs02dv:c:\cvs\dev" package="IRM" 
dest="." port="2401" failonerror="true"/>

这篇关于使用 MAVEN ANT 插件的 CVS Checkout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆