[ 
http://jira.codehaus.org/browse/MVERSIONS-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231812#action_231812
 ] 

Joerg Schaible commented on MVERSIONS-121:
------------------------------------------

This scenario is simply not supported. Been there, done that and bitterly 
bitten. The problem is that the SNAPSHOT is then always considered by Maven as 
the lower version and under some circumstancers Mavben will select the release 
alpha or beta even if you intend to use the SNAPSHOT, because only *you* know 
that it is newer, but for Maven it is *older*.

> Allow "versions:use-releases" to update a version to qualified releases as 
> for example "alpha-2" or "beta-3"
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: MVERSIONS-121
>                 URL: http://jira.codehaus.org/browse/MVERSIONS-121
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Improvement
>            Reporter: Lars Corneliussen
>
> As part of a automated build, we need to update dependency versions to 
> qualified releases. In our case we do automatic releases based on some rules. 
> But we do not really increase the version numbers, because the snapshot 
> version should stay the same all the time. Its actually the same thing as 
> releasing numbered alpha- or betas-...
> Given "mygroup:mylib:1.0-SNAPSHOT having an dependency on 
> mygroup:mydep:1.0-SNAPSHOT":
> Now, if I want to be able to release mylib:1.0-r00015 (<- Build Number) it 
> should update to the latest r**** of mygroup:mydep:1.0...
> Currently we have a patched version of maven-versions that allows following 
> command:
> {code}
> mvn versions:use-releases -DallowQualifiedReleases=true 
> -DqualifierIncludesList=r\d\d\d\d\d -DincludesList=mygroup:*
> {code}
> qualifierIncludes/Excludes are currently regex.
> If you find that interesting to be added to Maven Release I'd really be happy 
> to provide a patch and some tests. You can find the current implementation on 
> github:
> http://github.com/lcorneliussen/apache-versions/commits/use-qualified-releases
> A patch to be applied with TortoiseSVN is available here:
> http://lcorneliussen.de/utils/git-svn/github.com/lcorneliussen/apache-versions/commits/use-qualified-releases

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to