[
http://jira.codehaus.org/browse/MVERSIONS-121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231896#action_231896
]
Lars Corneliussen commented on MVERSIONS-121:
---------------------------------------------
Well, in our case we have to restrict to a released version no matter if there
is a newer snapshot... Because we use maven-release for staging of 100%
repeatable QA-Builds (for testing)
This is why I implemented it in use-releases ... it works fine. SNAPHSOTs are
ignored. You can use regex to restrict to specific "alpha-\d" and in that
subset DefaultVersion gets orderd alphabetically by the qualifier string.
> 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