私はtfsでリリースしようとしています。私は今mvn release:perform
で立ち往生しています。私はrelease:prepare
に成功し、その後MVN release:perform
を試してみましたが、このエラーを得たMVN終了:xxxは空ではないため、削除できません。 TFSリリース: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
私もこのフォルダ外のどこかの作業ディレクトリを指定しようとしたと同じエラーを受け取りました。私はこの問題について語り、誰かがこのフォルダを開いているすべてのタブを閉じるべきだと言ったが、同じエラーが出る。誰かが問題の原因を知っていますか?私はmvn release:prepare
がうまく働いたので私のSCMが良いと推測しています。
"C:\ .. \ target \ checkout"ターゲットフォルダをgitから手作業で(リポジトリから)削除しようとすると、とにかく無視するべきです。 Maven prepareはこのフォルダを使用してビルド内ビルドを実行します。すでに存在しているため、削除することはできません。 – Sarief
他のエラーがあります。コマンドライン - cmd.exe/X/C "tf workspace -login:xxx -new" -comment:mavenコマンド "-server:xxx"の作業領域を作成します。 [INFO] err - 閉鎖されました:送信時に予期しないエラーが発生しました。 –
C:\ E-Venue-tfs \ Java \ releaseTest \ releaseTestNameは空ではないため、削除できません。私はMavenが目標ディレクトリについて不平を言っていないと思う。また、今回はmvn releaseを開始する前にtarget dirを削除しました:perform(それはとにかく空でした)。彼は私のポンが住んでいる場所について不平を言っている。アドバイスありがとう、残念ながら私の問題はまだここにあります。 – Spasoje