无法执行mvn release:prepare

时间:2014-01-28 17:47:54

标签: maven maven-3 maven-plugin maven-release-plugin

我有一个只有一个类文件和一个junit测试文件的简单项目。使用mvn release尝试和测试版本:准备但在执行以下命令时提取以下异常。我安装了SVN服务器,但是在不同的Windows机器上。我确实在当前机器上安装了SVN客户端(TortoiseSVN)。

有人可以指导我错过了什么吗?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project maven-svn-release: Unable to check for local modifications
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] 'svn' is not recognized as an internal or external command,
[ERROR] operable program or batch file.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

pom.xml配置:

<scm>
    <connection>scm:svn:https://gsi-541243.gsiccorp.net/svn/maven-rnd/maven-svn-release/trunk</connection>
    <developerConnection>scm:svn:https://gsi-541243.gsiccorp.net/svn/maven-rnd/maven-svn-release/trunk</developerConnection>
    <url>https://gsi-541243.gsiccorp.net/svn/maven-rnd/maven-svn-release/trunk</url>
</scm> 


<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-release-plugin</artifactId>
            <configuration>
                <tagBase>https://gsi-541243.gsiccorp.net/svn/maven-rnd/maven-svn-release/tags</tagBase>
            </configuration>
        </plugin>
    </plugins>
</build>

0 个答案:

没有答案