Tôi mới sử dụng Maven và tôi được chỉ định trong một dự án đa mô-đun làm việc với tệp pom gốc. Tôi muốn thay đổi dự án chụp nhanh thành bản phát hành. Ngay cả khi tôi thêm thẻ scm và plugin phát hành Maven, bản phát hành: mục tiêu chuẩn bị tiếp tục không thành công.Lỗi xây dựng trên plugin phát hành Maven
Đây là những gì tôi đã thêm vào file pom.xml mẹ:
<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>
Dưới đây là lỗi:
Các lỗi là thế này:
[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..
Cảm ơn trước!
Bạn sử dụng lệnh nào? – Abdelhak
mvn release: chuẩn bị – Dera