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?
http://maven.apache.org/scm/maven-scm-plugin/checkin-mojo.html#pushChangesを参照してください。
pushChanges
分散された変更を中央リポジトリにプッシュする必要がありますか? Git などの多くの分散 SCM では、コミットなどの変更はリポジトリのローカル コピーにのみ保存されます。変更をプッシュすると、他のユーザーと簡単に共有できます。
タイプ: ブール値
以降: 1.4
必須: いいえ
式: ${pushChanges}
デフォルト: 真
(これ以上のコンテキストがなければ、これが本当に良いアイデアかどうかを判断するのは困難です。それは状況によります。)