-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update <scm><tag>...</tag></scm> #182
Comments
At the moment I don't have any plans nor request for this. This is the first in this direction......What about offering a pull request ? But it's not that trivial to do such things... |
Sure, I could give it a shot, when I have time. Would you prefer a separate goal (i. e. |
Decided to go for a separate goal, for simplicity. See #184. |
Hi, first thanks for your contribution and yes please add the information to the ReleaseNotes as well...apart from that If I correctly see the code this will only change the |
I've updated the release notes. I'm not sure what you mean. Why would the Compare this to the Here's what I would like to achieve for my release-flow: $ git checkout [commitSHA]
$ mvn versions:set versions:set-scm-tag -DnewVersion=1.0.0 -DnewTag=v1.0.0 -DgenerateBackupPoms=false
$ git add .
$ git commit -m "Set release 1.0.0"
$ git tag v1.0.0
$ git push --tags
$ mvn deploy |
In case of Git the tag in scm is enough, but not for Subversion. If you use Subversion this means also the scm/connection and scm/developerConnection needed to be changed according to the tag. <scm>
<connection>scm:svn:http://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-3.0.0</connection>
<developerConnection>scm:svn:https://svn.apache.org/repos/asf/maven/plugins/tags/maven-clean-plugin-3.0.0</developerConnection>
<url>http://svn.apache.org/viewvc/maven/plugins/tags/maven-clean-plugin-3.0.0</url>
</scm> and maybe for other version controls as well (Mercurial, Bazaar I don't know how it looks like there)... But for the first step we have to enhance the documentation with a prominent hint about the limitation for Git only...I think that should be feasible for the moment. So could you please add the appropriate documentation to your PR...Thank you... |
Ah, okay. That makes sense. However, the goal is currently called Edit: Where would you like me to document that the goal is currently mostly suited for |
Bump: Where would you want me to document it? |
* Add Mojo for setting the SCM tag Closes #182 * Do not try to update SCM tag on children * Update release notes
I've been using
versions:set
for a long time, and I'm moving away from themaven-release-plugin
all together. I'm just missing one thing when usingversions:set
. I want to be able to update the<scm><tag></tag></scm>
entry in my POM.It would be awesome if I could do this through
versions:set
or another goal in theversions
plugin.Any plans to add something like this? Or is this functionality available somewhere else, that I have missed?
The text was updated successfully, but these errors were encountered: