How can I configure the Versions Maven Plugin to exclude release candidates of certain dependencies? The versions of the dependencies in question have following format:
\d+\.\d+\.\d+\.\d+(-rc\d+)? OR <major>.<minor>.<sub>.<incremental>(-rc<number>)
E.g. 4.6.5.2
or 4.6.7.0-rc10
. So release candidates are only distinguised by their additional suffix. There is no separate maven repository etc.
I'm using org.codehaus.mojo:versions-maven-plugin in version 2.5.
Update the pom.xml with
and define follwing rule set in
version-rules.xml
Rules can be defined per groupId, as shown above, or globally, if you put
under the ruleset element.