You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2008/12/18 13:32:19 UTC

[jira] Closed: (MNG-2528) updatePolicy "always" does not work for repositories with "releases", at least not for transitive dependencies

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

Brett Porter closed MNG-2528.
-----------------------------

         Assignee: Brett Porter
       Resolution: Won't Fix
    Fix Version/s:     (was: Reviewed Pending Version Assignment)

Releases in Maven are, by definition, unchanging. The always flag is to check for new releases (like it looks for new snapshots), not modifications to the existing one.

> updatePolicy "always" does not work for repositories with "releases", at least not for transitive dependencies
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-2528
>                 URL: http://jira.codehaus.org/browse/MNG-2528
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.4
>            Reporter: Arne Degenring
>            Assignee: Brett Porter
>
> Released versions normally should be final. Once deployed, they should not be upgraded. That's what snapshot versions are for.
> Anyway, Maven *does* allow to overwrite an existing version in the repository by re-deploying it. Therefore, to make builds repeatable and reproducable, Maven should check for updates even of released versions, not only snapshot versions.
> I tried to use the following setting:
>  <repositories>
>   <repository>
>    <releases>
>     <enabled>true</enabled>
>     <updatePolicy>always</updatePolicy>
>   </releases>
> ...
> My project A has a dependency to version 5.0-SNAPSHOT of a JAR B. That JAR B has a dependency to version 1.6 of another JAR C. In my local repository there's an outdated version 1.6 of JAR C (i.e. version 1.6 has been redeployed after a bug has been found).  The problem is: During my build of project A Maven is looking for an update of JAR B, but NOT of JAR C. 
> This problem was originally discussed on
> http://www.nabble.com/-m2--Updates-of-transitive-dependencies-not-working--tf2158398.html

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