Good day to you, Elid,

I am not sure if there is a solution to your problem. Maven versioning uses
the following format ( see [1] ) by default: 

    private static final Pattern STANDARD_PATTERN = Pattern.compile(
        "^((?:\\d+\\.)*\\d+)" +      // digit(s) and '.' repeated - followed
by digit (version digits 1.22.0, etc)
            "([-_])?" +                 // optional - or _  (annotation
separator)
            "([a-zA-Z]*)" +             // alpha characters (looking for
annotation - alpha, beta, RC, etc.)
            "([-_])?" +                 // optional - or _  (annotation
revision separator)
            "(\\d*)" +                  // digits  (any digits after rc or
beta is an annotation revision)
            "(?:([-_])?(.*?))?$" );      // - or _ followed everything else
(build specifier)

So i guess if you want your version to auto-increment, you'd have to modify
maven-release-plugin so that it will use your own Versioning info.

Cheers,
Franz

[1]
http://svn.apache.org/repos/asf/maven/shared/trunk/maven-release-manager/src/main/java/org/apache/maven/shared/release/versions/DefaultVersionInfo.java


Grosskop, Kay wrote:
> 
> The release:prepare probably does already set the tag. The 'prepare' is
> somewhat confusing here. Its presumably chosen to make the distinction
> with publishing the release to the remote repo. 
> Maybe you can specify it as a property to the plugin from the commandline.
> something like: -DscmReleaseTag=RELEASE1-1
> But you should check the plugin docs or sourcecode for the way to do this. 
> sorry, can't help you here. 
> 
> ________________________________
> 
> Van: Elid OR [mailto:[EMAIL PROTECTED]
> Verzonden: vr 24-11-2006 12:42
> Aan: Maven Users List
> Onderwerp: Re: [m2] Maven Release Question
> 
> 
> 
> Hi Grosskop,
> 
> Yes I use cvs, but my question is before the tag for cvs. I have not
> reached
> the cvs tag step.
> 
> My problem occurs during "mvn release:prepare" when the plugin try to
> increment the version in the pom of the project.
> 
> It's true that cvs don't accept "." and required that the tag start with a
> letter, I don't know how it is handle in the plugin ?
> 
> 
> 
> 
> 
> On Friday 24 November 2006 12:15, Grosskop, Kay wrote:
>> Elid,
>>
>> I suppose the question is related to the release-plugin
>> Do you use cvs?
>> The release plugin suggests default release tags that are invalid voor
>> cvs
>> (tags cannot contain dots for cvs). If run interactively, you can simply
>> specify a valid cvs tag, but, you have to figure out how to pass that for
>> 'silent mode' to the plugin .
>>
>> Kay
>>
>> ________________________________
>>
>> Van: Elid OR [mailto:[EMAIL PROTECTED]
>> Verzonden: vr 24-11-2006 12:10
>> Aan: Maven Users List
>> Onderwerp: [m2] Maven Release Question
>>
>>
>>
>> Hi all,
>>
>> I would like to increment automatically  my project (without
>> intervention)
>> version when releasing with so I used the --batch-mode but my version is
>> something like that "r1.X.X-SNAPSHOT" and I got the following error :
>>
>> "Error parsing version, cannot determine next version: Unable to parse
>> the
>> version string: "r2.2006.2.27.16.2-SNAPSHOT"
>>
>> It seems that the release plugin can't handle version that contains
>> letter.
>>
>> Any solutions ?
>>
>> Thanks !
>>
>> Elid
>>
>> ps: I can't rename the version ! so it's not a solution :)
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
View this message in context: 
http://www.nabble.com/-m2--Maven-Release-Question-tf2698591s177.html#a7555751
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to