Like many more advanced Maven scenarios, the documentation is sketchy at best. Here is an example version rules xml file
<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"> <rules> <rule groupId="com.foo.bar" comparisonMethod="mercury"/> <rule groupId="foo.xyz" comparisonMethod="maven"/> </rules> </ruleset> -----Original Message----- From: Mehul Sanghvi [mailto:mehul.sang...@gmail.com] Sent: Thursday, January 07, 2016 6:31 AM To: Maven Users List Subject: Re: How to use 5 digit version numbers with Maven ? Is there documentation on the mercury scheme ? I tried following the link at http://www.mojohaus.org/versions-maven-plugin/version-rules.html, but that just gives me a "Page Not Found". cheers, mehul On Thu, Jan 7, 2016 at 7:27 AM, Robert Patrick <robert.patr...@oracle.com> wrote: > Yes, you can use the Mercury version numbering scheme for artifacts > having the 5 digit version number. Create a version rules XML file > that specifies which artifacts use Mercury and which artifacts use Maven > version schemes. > Pass the file using the versions plugin's rulesUri or > -Dmaven.version.rules... > > > On Jan 7, 2016, at 6:08 AM, Mehul Sanghvi <mehul.sang...@gmail.com> > wrote: > > > > We need to use 5 digit version numbers going forward. Maven only > handles 3 > > digit version numbers > > using the versions-maven-plugin. Is there a way to use 5 digits for > > project.version ? > > > > What we want to do is use 1.2.3.4.5-SNAPSHOT vs 1.2.3-SNAPSHOT and > > 1.2.3.4.5 vs 1.2.3 after > > the release. > > > > > > > > cheers, > > > > mehul > > > > -- > > Mehul N. Sanghvi > > email: mehul.sang...@gmail.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > -- Mehul N. Sanghvi email: mehul.sang...@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org