Archie,

You probably need the "file://" prefix for URLs that are file pathnames.
Thanks for the proposition. The results are a little bit different, but Ivy still doesn't find the dependency.

[ivy:retrieve] module not found: org.apache.commons#commons-lang;2.4
[ivy:retrieve]         ==== roundup: tried
[ivy:retrieve] file://c:/home/projects/roundup/org.apache.commons/commons-lang/2.4/ivy.xml <cid:[email protected]> [ivy:retrieve] -- artifact org.apache.commons#commons-lang;2.4!commons-lang.jar: [ivy:retrieve] file://c:/home/projects/roundup/org.apache.commons/commons-lang/2.4/packager.xml <cid:[email protected]>

I'm using Ivy 2.0.0-rc2 and JDK 1.5.0_17/1.6.0_3.  Here's a test case:

* the Ivy roundup has been checked-out onto c:/home/projects/roundup from
        http://ivyroundup.googlecode.com/svn/trunk/src/modules
    but also tried with
        http://ivyroundup.googlecode.com/svn/trunk/repo/modules

  * the ivysettings.xml

<ivysettings>
       <settings defaultResolver="roundup"/>
       <caches>
               <cache name="default-cache" basedir="c:/temp/ivycache"/>
       </caches>
       <resolvers>
               <packager name="roundup" buildRoot="c:/temp/packager-build"
resourceCache="c:/temp/packager-cache">
                       <ivy
pattern="file://c:/home/projects/roundup/[organisation]/[module]/[revision]/ivy.xml <file://c:/home/projects/roundup/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/ivy.xml>"/>
                       <artifact
pattern="file://c:/home/projects/roundup/[organisation]/[module]/[revision]/packager.xml <file://c:/home/projects/roundup/%5Borganisation%5D/%5Bmodule%5D/%5Brevision%5D/packager.xml>"/>
               </packager>
       </resolvers>
</ivysettings>

  * the Ivy file

<ivy-module version="1.0">
   <info organisation="roundup"
       module="roundup"
       revision="alpha"
       status="integration">
   </info>
   <configurations>
       <conf name="distributed"/>
   </configurations>
   <dependencies>
<dependency org="org.apache.commons" name="commons-lang" rev="2.4"
conf="distributed->default"/>
   </dependencies>

</ivy-module>

  * and the build file

<project name="roundup test" xmlns:ivy="antlib:fr.jayasoft.ivy.ant">
   <target name="init">
       <ivy:settings file="ivysettings.xml"/>
<ivy:retrieve pattern="lib/[conf]/[type]s/[module]/[artifact]-[revision].[ext]"/>
   </target>
</project>

If you have some time, could you try to reproduce the problem? Being able to access packagers via the file system would be a great help in writing new ones for the Roundup
repository.

Many thanks,

-Vladimir

Reply via email to