Reputation: 21184
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?
Upvotes: 3
Views: 6381
Reputation: 53513
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.)
Upvotes: 3