简体   繁体   English

Maven,Git,Android和Maven版本插件

[英]Maven, Git, Android and the Maven Release Plugin

Turning the the StackOverflow army for this one. 转向StackOverflow部队。 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. 我真的很想为我们的Android开发团队建立一个更好的构建过程,并且正在寻求Maven来帮助解决库依赖问题。

I am completely new to Maven and would really like to learn its power so I can host Maven repos for dependencies on GitHub. 我对Maven完全陌生,并且真的想了解它的功能,因此我可以托管Maven存储库以获取对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. 现在,我有一个测试的Android库推送到GitHub,并设置了一个Maven回购。 I'm trying to use the Maven Release Plugin to help automate the snapshot versioning and create tags on GitHub. 我正在尝试使用Maven版本插件来帮助自动化快照版本控制并在GitHub上创建标签。 When I do the mvn release:prepare it fails with the error: 当我执行mvn release:prepare时,它失败并显示以下错误:

[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. 我在StackOverflow上发现了一些与此相关的问题,但是没有一种解决方案可以解决我的问题。 I have the SCM tags correctly set in the pom.xml file. 我在pom.xml文件中正确设置了SCM标签。 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可以解决该问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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