As said: I do not have my head around the whole configuration concept. So my answer would be: I don't know.

All I know is that I have four dependency rules, which results in 93 jars. Then after adding configuration to the ivy.xml I only get 78. I'm totally in the dark as to why.

Tom





Joshua Tharp wrote:
Were those extra 15 jars part of a different configuration than the one you
depend on (which is the default conf in all four cases)?

On Wed, Apr 22, 2009 at 7:41 AM, Tom <[email protected]> wrote:

I also have the problem that it is not working as expected. Using the
following ivy.xml:

/<?xml version="1.0"?>
<ivy-module version="2.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="
http://ant.apache.org/ivy/schemas/ivy.xsd";>
  <info organisation="nl.knowledgeplaza" module="kpprofiler-service"
revision="0.1"/>
  <dependencies>
      <dependency org="org.codehaus.enunciate" name="enunciate-rt"
rev="1.10"/>             <dependency org="org.codehaus.enunciate"
name="enunciate-core" rev="1.10" /> <!-- also contains the ant task -->
        <dependency org="junit" name="junit" rev="4.5"/>         <dependency
org="org.liquibase" name="liquibase-core" rev="1.9.2"/>      </dependencies>
</ivy-module>


/And the running "<ivy:retrieve/>" results in 93 jars being downloaded,
amongst which are "activation-1.1.jar" and "jaxb-api-2.1.jar". Now, I wanted
to split these up according to usage:

/<?xml version="1.0"?>
<ivy-module version="2.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="
http://ant.apache.org/ivy/schemas/ivy.xsd";>
  <info organisation="nl.knowledgeplaza" module="kpprofiler-service"
revision="0.1"/>
  <configurations>
      <conf name="runtime" description="runtime"/>
      <conf name="build" description="for building"/>
      <conf name="test" description="for testing our framework"/>
  </configurations>
    <dependencies>
      <dependency org="org.codehaus.enunciate" name="enunciate-rt"
rev="1.10" conf="runtime->default"/>             <dependency
org="org.codehaus.enunciate" name="enunciate-core" rev="1.10"
conf="build->default"/>
      <dependency org="junit" name="junit" rev="4.5" conf="test->default"/>
        <dependency org="org.liquibase" name="liquibase-core" rev="1.9.2"
conf="test->default"/>      </dependencies>
</ivy-module>
/

Now I want to run three ivy-retrieves instead of one:

/        <ivy:retrieve conf="runtime"
pattern="lib/[artifact]-[revision].[ext]"/>
      <ivy:retrieve conf="test"
pattern="lib-test/[artifact]-[revision].[ext]"/>
      <ivy:retrieve conf="build"
pattern="lib-ext/[artifact]-[revision].[ext]"/>
/

Instead of 93 now 78 jars are being downloaded and a.o.
"activation-1.1.jar" and "jaxb-api-2.1.jar" are missing. I do not
understand! The same happens if I just do a "<ivy:retrieve/>": 78 jars. Same
dependencies... One of these dependency must be referring to the missing
jars. How can they be missing?

Tom



Reply via email to