我想使用 Maven 从远程 SVN 更新本地项目(无需安装 SVN 命令)我正在尝试在 maven-scm-publish-plugin 中使用备用 scm 提供程序,示例插件配置如下所示:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.1</version>
<configuration>
<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.6</version>
</dependency>
<dependency>
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.7.11</version>
</dependency>
</dependencies>
</plugin>
来源:http ://maven.apache.org/plugins/maven-scm-publish-plugin/various-tips.html
但执行后mvn scm:update
它在 Maven 日志中
[信息] --- maven-scm-plugin:1.9.5:update (default-cli) @ testscm ---
[信息] 执行:/bin/sh -c cd /home/stanimir/ProjectSvnTest && svn --non-interactive update /home/stanimir/ProjectSvnTest
和错误:svn not found
-我知道..它没有安装在系统上。我想改用svnkit,但是这个插件如何使用javasvn?