maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Patrick <robert.patr...@oracle.com>
Subject RE: How to use 5 digit version numbers with Maven ?
Date Thu, 07 Jan 2016 12:42:38 GMT
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.sanghvi@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.patrick@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.sanghvi@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.sanghvi@gmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


--
Mehul N. Sanghvi
email: mehul.sanghvi@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message