[英]Failure build on Maven release plugin
我是Maven的新手,我在一個使用父pom文件的多模塊項目中被分配。 我想將快照項目更改為發布。 即使我添加了scm標簽和Maven發布插件,發布:准備目標仍然失敗。
這是我在父pom.xml文件中添加的內容:
<project>
...
<scm>
<developerConnection>scm:git:http://localhost:8181/gitblit
/r/server/myCompany.git</developerConnection>
</scm>
...
//And the plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.3</version>
</plugin>
...
<project>
這是錯誤:
錯誤是這樣的:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-
plugin:2.5.3:prepare (default-cli) on
project myParentProject: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-add command failed.
[ERROR] Command output:
[ERROR] 'git' is not recognized as an internal or external command,
[ERROR] operable program or batch file..
提前致謝!
顯然你應該安裝git!
如果您的操作系統類似於UNIX,請使用某種包管理器, apt-get install git
用於debian衍生產品和ubuntu。
如果您的操作系統是Windows,請確保git.exe
位於%PATH
。
請先安裝GIT,然后再試一次
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.