CVS结帐使用Maven插件ANT [英] CVS Checkout using MAVEN ANT plugin

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

问题描述

我找了下面的事情。

如何使用Maven插件ANT结帐从CVS code

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

我可以使用下面的命令CVS从Windows命令提示符下连接到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服务器签出code。

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 [结账中止]:C:/ CVS的/ dev / CVSROOT:没有这样的文件或目录

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

CVSROOT文件夹位于C:/ CVS的/ dev / CVS服务器上

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

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

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