I just updated to 2.2.0 and tried again. Same results.

Valerie

Maarten Coene wrote:
Do you also have this problem if you use Ivy 2.2.0 ?

Maarten




----- Original Message ----
From: Valerie Wagner<valerie.wag...@sri.com>
To: ivy-user@ant.apache.org
Sent: Sat, January 22, 2011 12:24:04 AM
Subject: trouble retrieving Maven snapshots


I've Googled this problem and I see that many people are able to get Ivy to
retrieve changing Maven SNAPSHOTS, but I have been unable to make it work. Any
advice would be greatly appreciated.

The Resolver:

<ibiblio name="faust-artifactory"
                      m2compatible="true"
                      checkmodified="true"
                      changingPattern=".*SNAPSHOT"

root="http://${faust.artifactory.host}:8081/artifactory/libs-releases"/>

The Dependency:

<dependency org="cc.refectorie.proj.faustfactorie" name="faustfactorie"
rev="0.8.0-SNAPSHOT"
                     changing="true" conf="default->master"/>

The Resolve Task:

<ivy:resolve haltonfailure="true" refresh="true"
                              checkIfChanged="true" resolveMode="dynamic"/>

In my cache, I have "version 16" of the snapshot. (From the ivy data file:
faustfactorie-0.8.0-20110111.165205-16.jar)

On the server, "version 24" is available:
faustfactorie-0.8.0-20110120.223135-24.jar

When I run the resolve in verbose mode, I see that Ivy sees the version 24, but
determines it does not need to be downloaded:

      [echo] ## Resolving dependencies for [FAUST]...
      [echo]
[ivy:resolve] Loading
jar:file:/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/lib/ivy-2.1.0.jar!/org/apache/ivy/core/settings/ivy.properties

[ivy:resolve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:resolve] :: loading settings :: file =
/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/config/ivy-local-settings.xml

[ivy:resolve] no default ivy user dir defined: set to /Users/valerie/.ivy2
[ivy:resolve] loading properties:
/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/config/build.properties

[ivy:resolve] settings loaded (99ms)
[ivy:resolve]     default cache:
/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/config/../../repository/cache

[ivy:resolve]     default resolver: faust-resolver-chain
[ivy:resolve]     -- 2 resolvers:
[ivy:resolve]     faust-resolver-chain [chain] [faust-artifactory]
[ivy:resolve]     faust-artifactory [ibiblio]
[ivy:resolve] using ivy parser to parse
file:/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/System/ivy.xml
[ivy:resolve] :: resolving dependencies :: com.sri.faust#faust-system;1735
[ivy:resolve]     confs: [default]
[ivy:resolve]     validate = true
[ivy:resolve]     refresh = true
[ivy:resolve] resolving dependencies for configuration 'default'
[ivy:resolve] == resolving dependencies for com.sri.faust#faust-system;1735
[default]
[ivy:resolve] == resolving dependencies
com.sri.faust#faust-system;1735->cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT
  [default->master]
[ivy:resolve] faust-resolver-chain: Checking cache for: dependency:
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT {default=[master]}
[ivy:resolve] don't use cache for
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT: changing=true
[ivy:resolve] don't use cache for
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT:
checkModified=true
[ivy:resolve] [0.8.0-20110120.223135-24]
cc/refectorie/proj/faustfactorie#faustfactorie;0.8.0-SNAPSHOT
[ivy:resolve]         tried
http://XXX.XX.XXX.XX:8081/artifactory/libs-releases/cc/refectorie/proj/faustfactorie/faustfactorie/0.8.0-SNAPSHOT/faustfactorie-0.8.0-20110120.223135-24.pom

[ivy:resolve]     faust-artifactory: found md file for
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT
[ivy:resolve]         =>
http://XXX.XX.XXX.XX:8081/artifactory/libs-releases/cc/refectorie/proj/faustfactorie/faustfactorie/0.8.0-SNAPSHOT/faustfactorie-0.8.0-20110120.223135-24.pom
  (0.8.0-SNAPSHOT)
[ivy:resolve]     faust-cache: revision in cache (not updated):
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT
[ivy:resolve]     found
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT in
faust-artifactory
[ivy:resolve]     resolved ivy file produced in
/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/config/../../repository/cache/resolved-com.sri.faust-faust-system-1735.xml

[ivy:resolve] :: downloading artifacts ::
[ivy:resolve]     [NOT REQUIRED]
cc.refectorie.proj.faustfactorie#faustfactorie;0.8.0-SNAPSHOT!faustfactorie.jar
[ivy:resolve] :: resolution report :: resolve 471ms :: artifacts dl 6ms
     ---------------------------------------------------------------------
     |                  |            modules            ||   artifacts   |
     |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
     ---------------------------------------------------------------------
     |      default     |   1   |   1   |   0   |   0   ||   1   |   0   |
     ---------------------------------------------------------------------
[ivy:resolve]     report for com.sri.faust#faust-system;1735 default produced in
/Users/valerie/sri/projects/faust/code/Faust/trunk/sw/build/config/../../repository/cache/com.sri.faust-faust-system-default.xml

[ivy:resolve]     resolve done (471ms resolve - 6ms download)


thanks,
Valerie



Reply via email to