/bin/sh: svn: command not found
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for local modifications
Provider message:
The svn command failed.
即使已经安装了“Subversion 插件”,Jenkins 也找不到 Subversion。
/bin/sh: svn: command not found
Caused by: org.apache.maven.plugin.MojoFailureException: Unable to check for local modifications
Provider message:
The svn command failed.
即使已经安装了“Subversion 插件”,Jenkins 也找不到 Subversion。
这个错误的原因是你必须在 pom.xml 中明确定义 maven-release-plugin 应该使用 svnkit。
就是这样:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.4.1</version>
<configuration>
<goals>clean install</goals>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.0.5</version>
<scope>compile</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
你需要在你的机器上安装 subversion。如果您的操作系统是 Centos,您可以运行
yum install subversion