我正在尝试使用tfs发布。我现在卡在release:perform
mvn。我成功完成了mvn release:prepare
然后尝试了mvn release:perform
并收到了此错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building releaseTestName 1.13-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.5.3:perform (default-cli) @ releaseTestName ---
[INFO] Checking out the project to perform the release ...
[INFO] scmUrl - xxx
[INFO] workspace: myWorkSpace
[INFO] checkinPolicies: True
[INFO] Scheme - https
[INFO] Command line - cmd.exe /X /C "tf workspace -login:xxx -new "-comment:Creating workspace for maven command" -server:xxx"
[INFO] err - The underlying connection was closed: An unexpected error occurred on a send.
[INFO] Command line - cmd.exe /X /C "tf workfold -login:xxx -unmap xxx"
[INFO] err - xxx does not match any mapping.
[INFO] Command line - cmd.exe /X /C "tf workfold -login:xxx -map xxx C:\..\..\target\checkout"
[INFO] err -
[INFO] Command line - cmd.exe /X /C "tf get -login:xxx -recursive -force -version:LreleaseTestName-1.12 C:\..\..\target\checkout"
[INFO] err - xxx cannot be deleted because it is not empty.
xxx cannot be deleted because it is not empty.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project releaseTestName: Unable to checkout from SCM
[ERROR] Provider message:
[ERROR] Error code for TFS checkout (get) command - 0
[ERROR] Command output:
[ERROR] xxx cannot be deleted because it is not empty.
[ERROR] xxx cannot be deleted because it is not empty.
[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.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
我还尝试在此文件夹外的某处指定一个工作目录,并收到相同的错误。我用Google搜索了这个问题,有人说我应该关闭所有打开此文件夹的标签,但是我得到了同样的错误。有人知道问题是什么吗?我猜我的scm很好,因为mvn release:prepare
效果很好。
答案 0 :(得分:0)
mvn release:prepare将构建,从版本中删除SNAPSHOT,在SCM&更新下一个SNAPSHOT迭代的版本
mvn release:执行将从SCM签出标签,构建并推送到存储库(Nexus或类似的)
您发布:准备在尝试执行SCM标记时失败。您已设置密码或以Txxx身份登录TFS。
在我看来,您已经使用xxxx在Jenkins中设置了它。
答案 1 :(得分:0)
我解决了我的问题。我在Microsoft visual studio中创建了新工作区,并将我的项目映射到所有映射文件夹之外的某个位置。我在CFS上的某个目录上映射了C:\ Java,然后在C:\ Java中创建了新的虚拟项目,并尝试发布该项目,由于某种原因我无法做到这一点。然后我在C:\ test的某个地方映射了这个虚拟项目,这个问题就消失了。 :)