I've been using specific revisions, ie: <dependency conf="base->default" org="com.ns" name="nscommon" rev="1.0.0-SNAPSHOT"/>
I tried changing the revision to "latest.integration" and while it resolves as I would expect (1.0.0-SNAPSHOT), it does not retrieve the actual latest version from the repository. Are there other latest.* keywords that I can try? I've tried "latest.release", "latest.snapshot", and "latest.time" but all of these do not resolve: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:resolve] :: com.ns#nscommon;latest.release: not found [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: I've also been trying to use the latest-strategies feature to reconcile this issue, but so far that has not worked out for me either. Thanks for your Reply! Barry Jonathan Roberts-6 wrote: > > How is the dependency defined? Do you have rev="latest.integration" > set? > > -----Original Message----- > From: bman [mailto:[email protected]] > Sent: Wednesday, September 23, 2009 1:58 PM > To: [email protected] > Subject: Ivy resolve not getting latest > > > Howdy All, > > I'm having trouble trying to get ivy resolve to update with the latest > jars > from the repository. If I upload an updated version of a jar, the ivy > resolve does not update the cache with this new jar. I've searched > around > and tried various combinations of using attributes on the resolvers and > ivy:resolve and setting the ivy.resolver.default.check.modified property > to > true. > > I've tried using: > <ivy:resolve refresh="true" resolveMode="dynamic"/> > > and various combinations of (I've used the filesystem resolver as well > to no > avail): > <url name="nsResolver" force="true" checkmodified="true" > m2compatible="true" > > force appears to be undesirable because it will update a dependency to > the > latest version found in the repository and we have some legacy > applications > that we don't want on the latest version of an artifact > > When I use: > <property name="ivy.resolver.default.check.modified" value="true"/> > the resolve fails for any dependency with the format org="com.something" > ie: > Without ivy.resolver.default.check.modified=true > $ ant ivy-retrieve > Buildfile: build.xml > > ivy-retrieve: > [ivy:resolve] :: Ivy 2.1.0-rc2 - 20090704004254 :: > http://ant.apache.org/ivy/ :: > > [ivy:resolve] :: loading settings :: file = > c:\dev\eclipse\workspace\ns-nov > 2009-ivy2\cstool-lib-snapshot\ivysettings.xml > [ivy:resolve] :: resolving dependencies :: com.ns#cstool;ns-nov2009 > [ivy:resolve] confs: [base, jboss, test] > [ivy:resolve] found commons-lang#commons-lang;2.4-NS in nsResolver > [ivy:resolve] found javacsv#javacsv;1.0-NS in nsResolver > [ivy:resolve] found com.toedter#jcalendar;1.2.2 in nsChain > [ivy:resolve] found jdom#jdom;b7 in nsResolver > [ivy:resolve] found jlfgr#jlfgr;1.0 in nsResolver > [ivy:resolve] found net.sourceforge.jexcelapi#jxl;2.6 in nsChain > [ivy:resolve] found log4j#log4j;1.2.14 in nsResolver > [ivy:resolve] found jgoodies#looks;1.3.1 in nsResolver > [ivy:resolve] :: resolution report :: resolve 469ms :: artifacts dl 16ms > > --------------------------------------------------------------------- > | | modules || > artifacts > | > | conf | number| search|dwnlded|evicted|| > number|dwnlded| > > --------------------------------------------------------------------- > | base | 8 | 0 | 0 | 0 || 8 | > 0 > | > | jboss | 0 | 0 | 0 | 0 || 0 | > 0 > | > | test | 0 | 0 | 0 | 0 || 0 | > 0 > | > > --------------------------------------------------------------------- > [ivy:resolve] > [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > [ivy:retrieve] :: retrieving :: com.ns#cstool > [ivy:retrieve] confs: [base, jboss, test] > [ivy:retrieve] 0 artifacts copied, 8 already retrieved (0kB/47ms) > > BUILD SUCCESSFUL > Total time: 1 second > > With ivy.resolver.default.check.modified=true > $ ant ivy-retrieve > Buildfile: build.xml > > ivy-retrieve: > [ivy:resolve] :: Ivy 2.1.0-rc2 - 20090704004254 :: > http://ant.apache.org/ivy/ :: > > [ivy:resolve] :: loading settings :: file = > c:\dev\eclipse\workspace\ns-nov > 2009-ivy2\cstool-lib-snapshot\ivysettings.xml > [ivy:resolve] :: resolving dependencies :: com.ns#cstool;ns-nov2009 > [ivy:resolve] confs: [base, jboss, test] > [ivy:resolve] found commons-lang#commons-lang;2.4-NS in nsResolver > [ivy:resolve] found javacsv#javacsv;1.0-NS in nsResolver > [ivy:resolve] found jdom#jdom;b7 in nsResolver > [ivy:resolve] found jlfgr#jlfgr;1.0 in nsResolver > [ivy:resolve] found log4j#log4j;1.2.14 in nsResolver > [ivy:resolve] found jgoodies#looks;1.3.1 in nsResolver > [ivy:resolve] :: resolution report :: resolve 828ms :: artifacts dl 16ms > > --------------------------------------------------------------------- > | | modules || > artifacts > | > | conf | number| search|dwnlded|evicted|| > number|dwnlded| > > --------------------------------------------------------------------- > | base | 8 | 6 | 0 | 0 || 6 | > 0 > | > | jboss | 0 | 0 | 0 | 0 || 0 | > 0 > | > | test | 0 | 0 | 0 | 0 || 0 | > 0 > | > > --------------------------------------------------------------------- > [ivy:resolve] > [ivy:resolve] :: problems summary :: > [ivy:resolve] :::: WARNINGS > [ivy:resolve] module not found: com.toedter#jcalendar;1.2.2 > [ivy:resolve] ==== localResolver2: tried > [ivy:resolve] -- artifact com.toedter#jcalendar;1.2.2!jcalendar.jar: > [ivy:resolve] C:\Documents and > Settings\bpape/.ivy2/cachetest/com/toedter/jc > alendar/1.2.2/jcalendar-1.2.2.jar > [ivy:resolve] ==== nsResolver: tried > [ivy:resolve] -- artifact com.toedter#jcalendar;1.2.2!jcalendar.jar: > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/libs-snapshots-loca > l/com/toedter/jcalendar/1.2.2/jcalendar-1.2.2.jar > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/libs-releases-local > /com/toedter/jcalendar/1.2.2/jcalendar-1.2.2.jar > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/ext-releases-local/ > com/toedter/jcalendar/1.2.2/jcalendar-1.2.2.jar > [ivy:resolve] module not found: > net.sourceforge.jexcelapi#jxl;2.6 > [ivy:resolve] ==== localResolver2: tried > [ivy:resolve] -- artifact net.sourceforge.jexcelapi#jxl;2.6!jxl.jar: > [ivy:resolve] C:\Documents and > Settings\bpape/.ivy2/cachetest/net/sourceforg > e/jexcelapi/jxl/2.6/jxl-2.6.jar > [ivy:resolve] ==== nsResolver: tried > [ivy:resolve] -- artifact net.sourceforge.jexcelapi#jxl;2.6!jxl.jar: > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/libs-snapshots-loca > l/net/sourceforge/jexcelapi/jxl/2.6/jxl-2.6.jar > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/libs-releases-local > /net/sourceforge/jexcelapi/jxl/2.6/jxl-2.6.jar > [ivy:resolve] > http://172.0.0.0:8080/artifactory-2.0.6/ext-releases-local/ > net/sourceforge/jexcelapi/jxl/2.6/jxl-2.6.jar > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:resolve] :: UNRESOLVED DEPENDENCIES :: > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:resolve] :: com.toedter#jcalendar;1.2.2: not found > [ivy:resolve] :: net.sourceforge.jexcelapi#jxl;2.6: not found > [ivy:resolve] :::::::::::::::::::::::::::::::::::::::::::::: > [ivy:resolve] > [ivy:resolve] > [ivy:resolve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > > BUILD FAILED > c:\dev\eclipse\workspace\ns-nov2009-ivy2\cstool-lib-snapshot\build.xml:1 > 09: > impossible to resolve dependencies: > resolve failed - see output for details > > Total time: 2 seconds > > > Am I totally overlooking or misunderstanding something? > > Thanks! > Barry > -- > View this message in context: > http://www.nabble.com/Ivy-resolve-not-getting-latest-tp25531231p25531231 > .html > Sent from the ivy-user mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/Ivy-resolve-not-getting-latest-tp25531231p25619352.html Sent from the ivy-user mailing list archive at Nabble.com.
