简体   繁体   中英

Maven, Git, Android and the Maven Release Plugin

Turning the the StackOverflow army for this one. I really want to get a better build process in place for our Android development team and am turning to Maven to help with library dependencies.

I am completely new to Maven and would really like to learn its power so I can host Maven repos for dependencies on GitHub. Any great tutorials or read up that are recommend would be great.

Right now I have a test Android library push to GitHub and a Maven repo set up with it. I'm trying to use the Maven Release Plugin to help automate the snapshot versioning and create tags on GitHub. When I do the mvn release:prepare it fails with the error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.0:prepare (default-cli) on project DependencyTest: Unable to commit files
[ERROR] Provider message:
[ERROR] The git-commit command failed.
[ERROR] Command output:

I've found few questions on StackOverflow about this but none of the solutions fix my problem. I have the SCM tags correctly set in the pom.xml file. Any ideas?

Thanks in advance for all the help - this is all new to me but I am eager to learn!

我遇到了同样的问题,将maven-release-plugin从2.0升级到2.4.2可以解决该问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM