Skip to content

Instantly share code, notes, and snippets.

@seanf
Last active January 9, 2018 07:37
Show Gist options
  • Select an option

  • Save seanf/2546b445475b23d0297fe677b899cd44 to your computer and use it in GitHub Desktop.

Select an option

Save seanf/2546b445475b23d0297fe677b899cd44 to your computer and use it in GitHub Desktop.
Versions rules for versions-maven-plugin
<ruleset comparisonMethod="maven"
xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<!-- Thanks to Michael Piefel and Philip Helger: https://stackoverflow.com/a/22174801/14379 -->
<ignoreVersions>
<ignoreVersion type="regex">.*[-_\.](alpha|Alpha|ALPHA|b|beta|Beta|BETA|rc|RC|M|EA)[-_\.]?[0-9]*</ignoreVersion>
</ignoreVersions>
</ruleset>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment