https://github.com/docwhat/maven-release-tools
Tools for doing releases without using the maven-release-plugin
https://github.com/docwhat/maven-release-tools
Last synced: 12 months ago
JSON representation
Tools for doing releases without using the maven-release-plugin
- Host: GitHub
- URL: https://github.com/docwhat/maven-release-tools
- Owner: docwhat
- Created: 2015-01-14T14:23:56.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2021-02-13T02:10:45.000Z (over 5 years ago)
- Last Synced: 2025-04-06T18:38:49.664Z (about 1 year ago)
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Maven Release Tools
===================
The built in maven-release-plugin has been known to be fragile and problematic
for a long time.
These are some tools for doing releases without using the maven-release-plugin
at all.
These tools were meant to help implement a process similar to the one mentioned
in Alex Fontaine's blog post, [*Maven Release Plugin: The Final Nail in the
Coffin*](http://axelfontaine.com/blog/final-nail.html).
The output of these scripts are meant to imitate `mvn` output so you can parse
it or highlight it with your normal maven logging tools. For example, in
Jenkins we use a plugin that marks `[ERROR]` lines red for easy scanning.
mvn-version-release-bump
------------------------
This tool removes the `-SNAPSHOT` part of the version from the `pom.xml`.
If the version already doesn't include `-SNAPSHOT` it will quit with an exit
code 42.
mvn-version-snapshot-bump
-------------------------
This tool increments the version and adds the `-SNAPSHOT` part in the
`pom.xml`.
If the version already includes `-SNAPSHOT` it will quit with an exit code 42.
mvn-reject-release-version
--------------------------
If the version already doesn't include `-SNAPSHOT` it will quit with an exit
code 42.
This tool is meant to prevent building non`-SNAPSHOT` builds when running
code-verification (for example, with Gerrit).
mvn-current-version
-------------------
Echoes the current version from the `pom.xml`.