如何与maven推git [英] how to git push with maven

查看:131
本文介绍了如何与maven推git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为我的构建的一部分,我正在创建一些文件。我希望maven提交并推送这些文件。



我看了一下maven-scm插件,我看不到如何进行推送。



有没有办法用maven做一个git push?

解决方案

请参阅 http: //maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#pushChanges


pushChanges



是否应将分布式更改推送到中央存储库?对于
许多像Git这样的分布式SCM,像commit这样的更改只会存储在本地副本的
中。推送更改可让您的
更轻松地与其他用户共享。



类型:布尔值

从以下版本开始:1.4



必需:否

表达式:$ {pushChanges}



默认值:true

(没有更多的上下文,很难判断这是否真的很好想法与否,取决于。)


As part of my build I am creating some files. I would like maven to commit and push these files.

I have looked at the maven-scm plugin and I can't see how to do a push. I can see commit but not push.

Is there any way to do a git push with maven?

解决方案

See http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#pushChanges

pushChanges

Should distributed changes be pushed to the central repository? For many distributed SCMs like Git, a change like a commit is only stored in your local copy of the repository. Pushing the change allows your to more easily share it with other users.

Type: boolean

Since: 1.4

Required: No

Expression: ${pushChanges}

Default: true

(Without more context, it is hard to tell if this is really a good idea or not. That depends.)

这篇关于如何与maven推git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆