ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom <t...@tbee.org>
Subject Re: Configurations and Ivy file confusion
Date Wed, 22 Apr 2009 14:41:44 GMT
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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message