xxx 不能删除,因为它不为空。 TFS release:perform

xxx cannot be deleted because it is not empty. TFS release:perform

我正在尝试使用 tfs 发布一个版本。我现在卡在 mvn release:perform 了。我成功地完成了 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

我还尝试在此文件夹之外的某处指定工作目录,但收到了同样的错误。我用谷歌搜索了这个问题,有人说我应该关闭所有打开了这个文件夹的选项卡,但我得到了同样的错误。有人知道问题出在哪里吗?我猜我的 scm 很好,因为 mvn release:prepare 工作得很好。

mvn release:prepare 将构建、从版本中删除 SNAPSHOT、在 SCM 中标记并为下一个 SNAPSHOT 迭代更新版本

mvn release:perform 将从 SCM 签出标签,构建并推送到存储库(Nexus 或类似的)

您 release:prepare 在尝试执行 SCM 标记时失败了。您已设置密码或以 xxxx 身份登录 TFS。

在我看来,您已经在 J​​enkins 中使用 xxxx 进行了设置。

我解决了我的问题。我在 Microsoft visual studio 中创建了新的工作区,并将我的项目映射到所有映射文件夹之外的某个位置。我将 C:\Java 映射到 TFS 上的某个目录,然后我在 C:\Java 中创建了新的虚拟项目并尝试发布该项目,但由于某种原因我无法做到这一点。然后我将该虚拟项目映射到 C:\test 上的某处,此问题就消失了。 :)