If I use
        <target name="retrieve-deps" depends="load-ivy">
                 <ivy:retrieve  pattern="lib/[conf]/[artifact]-[revision].[ext]"
                                                conf="default"/>
                <ivy:retrieve   
pattern="lib/[conf]1/[artifact]-[type]-[revision].[ext]"
                                                conf="sources"/>
        </target>
I get following error

Buildfile: localpath\ivy.test\ant\build.xml
load-ivy:
retrieve-deps:
[ivy:retrieve] :: Ivy 2.1.0 - 20090925235825 :: http://ant.apache.org/ivy/ ::
[ivy:retrieve] :: loading settings :: file =
somepath\ivy\settings\default_ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: test#ivy.test;work...@fc00416
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  found apache#commons-lang;2.4 in prod
[ivy:retrieve] downloading
somepath\repository\prod\apache\commons-lang\jars\commons-lang-2.4.jar
...
[ivy:retrieve]  [SUCCESSFUL ] apache#commons-lang;2.4!commons-lang.jar (109ms)
[ivy:retrieve] :: resolution report :: resolve 204ms :: artifacts dl 109ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      default     |   1   |   1   |   1   |   0   ||   1   |   1   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: test#ivy.test
[ivy:retrieve]  confs: [default]
[ivy:retrieve]  1 artifacts copied, 0 already retrieved (255kB/16ms)
[ivy:retrieve] :: resolving dependencies :: test#ivy.test;work...@fc00416
[ivy:retrieve]  confs: [sources]
[ivy:retrieve]  found apache#commons-lang;2.4 in prod
[ivy:retrieve] :: resolution report :: resolve 47ms :: artifacts dl 16ms
        ---------------------------------------------------------------------
        |                  |            modules            ||   artifacts   |
        |       conf       | number| search|dwnlded|evicted|| number|dwnlded|
        ---------------------------------------------------------------------
        |      sources     |   1   |   0   |   0   |   0   ||   1   |   0   |
        ---------------------------------------------------------------------
[ivy:retrieve] :: problems summary ::
[ivy:retrieve] :::: WARNINGS
[ivy:retrieve]          [NOT FOUND  ]
apache#commons-lang;2.4!commons-lang.jar(source) (0ms)
[ivy:retrieve]  ==== prod: tried
[ivy:retrieve]    somepath/repository/prod/apache/2.4/sources/commons-lang.jar
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          ::              FAILED DOWNLOADS            ::
[ivy:retrieve]          :: ^ see resolution messages for details  ^ ::
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]          :: apache#commons-lang;2.4!commons-lang.jar(source)
[ivy:retrieve]          ::::::::::::::::::::::::::::::::::::::::::::::
[ivy:retrieve]
[ivy:retrieve]
[ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
C:\localpath\ivy.test\ant\build.xml:31: impossible to resolve dependencies:
        resolve failed - see output for details

Total time: 1 second

If I use
                 <ivy:retrieve  pattern="lib/[conf]/[artifact]-[revision].[ext]"
                                                conf="default,sources"/>
everything works fine, but I want to put sources and jars in different
directories.

If I always delete the cache (at .ivy2) it works fine, also

                <delete dir="localpath/.ivy2"/>
                 <ivy:retrieve  pattern="lib/[conf]/[artifact]-[revision].[ext]"
                                                conf="default"/>
                <delete dir="localpath/.ivy2"/>
                <ivy:retrieve   
pattern="lib/[conf]1/[artifact]-[type]-[revision].[ext]"
                                                conf="sources"/>

Is ivy wrong or me?

How can I disable cache? I use
   <caches useOrigin="true"/>
but ivy files are always cached.

Reply via email to