[ 
https://jira.codehaus.org/browse/MVERSIONS-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=291263#comment-291263
 ] 

Andreas Skoog commented on MVERSIONS-142:
-----------------------------------------

I agree with Yongjun, invoking a goal specifying "use latest release" or "use 
latest version" specifying that snapshots are disallowed, the expected output 
would be to use the latest released version, even if it is earlier than the 
current snapshot. 

I've attached a patch for a new goal "downgrade-to-latest-releases" that does 
this...




                
> Cannot find the latest released version(ex. 1.0.8-a)  when the current 
> dependency version is a snapshot version (ex. 1.0.9-SNAPSHOT) which is higher 
> than the latest released version (ex. 1.0.8-a) 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MVERSIONS-142
>                 URL: https://jira.codehaus.org/browse/MVERSIONS-142
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>            Reporter: Yongjun Rong
>         Attachments: downgrade.patch
>
>
> When it define a dependency version point to a latest snapshot version (ex. 
> 1.0.9-SNAPSHOT) which is higher than the latest released version (ex. 
> 1.0.8-a) , version plugin cannot update the dependency released version to 
> 1.0.8-a correctly when "-DallowSnapshots=false". It still use the current 
> snapshot version(1.0.9-SNAPSHOT) because it is higher than the latest 
> released version (1.0.8-a) based on the default maven version comparing 
> pattern.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.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