[ https://jira.codehaus.org/browse/MANTTASKS-237?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=325528#comment-325528 ]
Thomas Pasch commented on MANTTASKS-237: ---------------------------------------- I was fuzzy with point 2. Here's an more detailed description what should be done: 2. a) For Release dependencies: Check local cache. If dependency is not there, download it from remote repository server(s) to the cache. b) For SNAPSHOT dependencies: Check local cache and remote repository server(s) to find out which SHAPSHOT build is the newest. If the newest build is in cache, use it. Else, download it from server to cache and use it. The problem with Maven 2.x Ant Tasks Version 2.1.3 is that only the remote server(s) are queried about dependencies. Hence, it there is a local cached SNAPSHOT build that is newer than the one on the server(s), it will _not_ be used. > <artifact:dependencies/> Task only checks Maven Repo Servers > ------------------------------------------------------------ > > Key: MANTTASKS-237 > URL: https://jira.codehaus.org/browse/MANTTASKS-237 > Project: Maven 2.x Ant Tasks > Issue Type: Bug > Components: dependencies task > Affects Versions: 2.1.3 > Environment: Ubuntu Raring/13.04 64bit, but most probably OS > independant > Reporter: Thomas Pasch > Priority: Minor > > <artifact:dependencies/> Task only checks Maven Repo Servers. This is wrong > and best seen with SNAPSHOT dependencies. > The dependency task should (also) take into account (in this proper sequence): > 1. The current maven reactor, i.e. the modules to build currently. (This > should be none, as the dependency task rather will build nothing.) > 2. The local maven artifact cache (normally situated under ~/.m2/repository. > 3. The repo servers defined in the pom.xml (and the default repo servers). > (This is the only thing done currently.) > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira