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

Stephen Connolly closed MVERSIONS-99.
-------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 1.2)
                   1.3
         Assignee: Stephen Connolly

r15088

> display-dependency-updates reports  dependencies with ranges under wrong 
> heading (when the range contains the latest version)
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MVERSIONS-99
>                 URL: https://jira.codehaus.org/browse/MVERSIONS-99
>             Project: Maven 2.x Versions Plugin
>          Issue Type: Bug
>    Affects Versions: 1.2
>         Environment: Rehat 5.3 linux
> Maven 2.2.x and 3.0
> versions-maven-plugin 1.2-SNAPSHOT, built from subversion trunk
>            Reporter: Erik Schepers
>            Assignee: Stephen Connolly
>             Fix For: 1.3
>
>         Attachments: MVERSIONS-99.patch
>
>
> The display-dependency-updates goal incorrectly reports versions for 
> dependencies that were specified with a version-range, and for which the 
> latest version falls *within* the range, under the *The following 
> dependencies in Dependencies have newer versions* heading.
> IMHO, these should be reported under the *The following dependencies in 
> Dependencies are using the newest version*, since the ranges are effectively 
> resolving to the latest version.
> For example, in my pom.xml I declare the following dependency with a range:
> {code}
> ...
> <dependencies>
>   <dependency>
>     <groupId>some.group</groupId>
>     <artifactId>test</artifactId>
>     <version>[1.0, 2.0)</version>
>   </dependency>
> </dependencies>
> ...
> {code}
> And say that the latest release of some.group:test is 1.2.41
> Unleashing the display-dependency-updates goal on this pom, produces the 
> following:
> {noformat}
> ...
> [INFO] The following dependencies in Dependencies *have newer versions*:
> [INFO]   some.group:test .................................. [1.0,2.0) -> 
> 1.2.41
> [INFO]
> ...
> {noformat}
> This is not what I expected, since the latest version (1.2.41) is within the 
> declared range of [1.0,2.0).
> What I expected is:
> {noformat}
> ...
> [INFO] The following dependencies in Dependencies *are using the newest 
> version*:
> [INFO]   some.group:test .................................. [1.0,2.0) -> 
> 1.2.41
> [INFO]
> ...
> {noformat}
> I've attached a patch (the same one as for MVERSIONS-98).

--
This message is automatically generated by JIRA.
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