[ 
http://jira.codehaus.org/browse/MVERSIONS-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephen Connolly closed MVERSIONS-58.
-------------------------------------

    Resolution: Duplicate

Duplicate of MVERSIONS-45

> versions:use-latest-versions goal does not apply 'allowSnapshots' setting
> -------------------------------------------------------------------------
>
>                 Key: MVERSIONS-58
>                 URL: http://jira.codehaus.org/browse/MVERSIONS-58
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>    Affects Versions: 1.0-alpha-3
>         Environment: All
>            Reporter: Ron Gallagher
>            Priority: Minor
>
> If a project references version 1.0 of a component, but versions 1.1 and 
> 1.2-SNAPSHOT are available, then the dependency entry for that component 
> should be updated to "1.2-SNAPSHOT" if "allowSnapshots" is set to true.  
> Right now, that doesn't happen.
> The problem is in the useLatestVersions method of the 
> org.codehaus.mojo.versions.UseLatestVersionsMojo class.  That method 
> currently gets the list of available versions via the following code (line 
> 98):
> {{ArtifactVersion[] newer = versions.getNewerVersions( version, false );}}
> This code doesn't apply the "allowSnapshots" property.  It should be changed 
> to the following:
> {{ArtifactVersion[] newer = versions.getNewerVersions( version, *{color:red} 
> Boolean.TRUE.equals( allowSnapshots ){color}* );}}
> I am unable to create a patch in my current environment.

-- 
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