1
我做一個簡單好用的一系列命令,釋放我的Maven模塊釋放一個Maven模塊: MVN發佈:準備 發佈:準備-DautoVersionSubmodules =真-DpushChanges =假髮佈一個Maven模塊。無法爲git的標籤加載失敗提交文件
但是這個命令在標記時失敗,因爲它無法管理註釋文件。
我去我的回購文件夾。在這裏我有一個帶有一個子項目的主POM文件的'項目'。
我從Windows命令行啓動了這個。 mvn安裝運行良好。 git是從cygwin獲得的可執行文件。使用-X運行相同的命令沒有給出任何關於爲什麼不生成.commit文件的信息。
任何幫助表示讚賞!
[INFO] --- maven-release-plugin:2.5.1:prepare (default-cli) @ Module0 ---
[INFO] Resuming release from phase 'scm-tag'
[INFO] Tagging release with the label v5.0.1...
[INFO] Executing: cmd.exe /X /C "git tag -F C:\Users\usern~1\AppData\Local\Temp\maven-scm-1994697645.commit v5.0.1"
[INFO] Working directory: C:\Users\usernamexyz\Documents\git\repo\project
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Module1........................... FAILURE [ 0.751 s]
[INFO] Module2..................................... SKIPPED
[INFO] Module3........................................ SKIPPED
[INFO] Module4............................................ SKIPPED
[INFO] Module5.................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.414 s
[INFO] Finished at: 2017-09-26T23:01:07+01:00
[INFO] Final Memory: 12M/244M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.1:prepare (default-cli) on project Module0: Unable to tag SCM
[ERROR] Provider message:
[ERROR] The git-tag command failed.
[ERROR] Command output:
[ERROR] fatal: could not open or read 'project/C:\Users\usern~1\AppData\Local\Temp\maven-scm-1994697645.commit': No such file or directory
[ERROR] -> [Help 1]