当我在项目的根目录中运行mvn release:prepare
时,出现以下错误:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.454 s
[INFO] Finished at: 2016-08-01T10:48:33-04:00
[INFO] Final Memory: 13M/309M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.3.2:prepare (default-cli) on project PROJECT_NAME: Unable to commit files
[ERROR] Provider message:
[ERROR] The svn command failed.
[ERROR] Command output:
[ERROR] svn: E170013: Commit failed (details follow):
[ERROR] svn: E170013: Unable to connect to a repository at URL 'SVN_URL/PROJECT_NAME/trunk'
[ERROR] svn: E170012: Can't create tunnel
[ERROR] svn: E720002: Can't create tunnel: The system cannot find the file specified.
错误发生之前运行的命令是:
Executing: svn --non-interactive commit --file C:\Users\USER\AppData\Local\Temp\maven-scm-30296160.commit --targets C:\Users\USER\AppData\Local\Temp\maven-scm-7737565307957865496-targets
我可以通过Eclipse SVN插件检查项目进/出,但无法从命令行提交到存储库。
我的猜测是Maven不知道我的SSH密钥来访问该存储库,即使我有Pageant运行。我怎样才能给Maven那些信息?或者,更好的是,如何在Eclipse中运行release:prepare
我知道我可以提交SVN?
编辑:以下是我的<scm>
文件的pom.xml
部分:
<connection>scm:svn:SVN_URL/tags/PROJECT_NAME.VERSION</connection>
<developerConnection>scm:svn:svn+ssh://SVN_URL/tags/PROJECT_NAME.VERSION</developerConnection>
<url>SVN_URL/tags/PROJECT_NAME.VERSION</url>
此外,所有大写字母都可以替代隐私问题。