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 Fri, 24 Apr 2009 07:54:36 GMT

>> OK, many projects have source and jar artifacts with the same name, 
>> so you really want to either set a retrieve pattern which includes 
>> the type of the artifact for disambiguation. If you cannot do this, 
>> you'll need to specify an exclusion rule for your dependencies to 
>> only include type jar. Here are examples of both:

I cannot quite wrap my head around this (I've used your configurations). 
Now, using:

    <ivy:retrieve/>


/ivy-retrieve:
     [echo] Ivy is fetching all dependencies and copying them into the 
lib dir..
.
No ivy:settings found for the default reference 'ivy.instance'.  A 
default insta
nce will be used
[ivy:retrieve] :: Ivy 2.1.0-rc1 - 20090319213629 :: 
http://ant.apache.org/ivy/ :
:
:: loading settings :: file = C:\Documents and Settings\toeu\My 
Documents\kp\pro
filer\kpprofiler2\components\service\ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: 
nl.knowledgeplaza#kpprofiler-service
;0.1
[ivy:retrieve]  confs: [default, runtime, compile, test, sources, javadocs]
[ivy:retrieve]  *found org.codehaus.enunciate#enunciate-rt;1.10 in public*
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-core-rt;1.10 in 
public
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-core-annotations;1.10 in
public
[ivy:retrieve]  found xfire#xfire-jsr181-api;1.0-M1 in public
[ivy:retrieve]  found javax.ws.rs#jsr311-api;1.0 in public
[ivy:retrieve]  found javax.xml.ws#jaxws-api;2.1-1 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-rest-rt;1.10 in 
public
[ivy:retrieve]  found org.springframework#spring-beans;2.5.4 in public
[ivy:retrieve]  found commons-logging#commons-logging;1.0.4 in public
[ivy:retrieve]  found org.springframework#spring-core;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-context;2.5.4 in public
[ivy:retrieve]  found aopalliance#aopalliance;1.0 in public
[ivy:retrieve]  found org.springframework#spring-web;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-webmvc;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-context-support;2.5.4 
in public

[ivy:retrieve]  found org.codehaus.jettison#jettison;1.0.1 in public
[ivy:retrieve]  found commons-beanutils#commons-beanutils;1.7.0 in public
[ivy:retrieve]  found com.thoughtworks.xstream#xstream;1.3 in public
[ivy:retrieve]  found xpp3#xpp3_min;1.1.4c in public
[ivy:retrieve]  found com.sun.xml.bind#jaxb-impl;2.1.8 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-jersey-rt;1.10 in 
public
[ivy:retrieve]  found com.sun.jersey#jersey-server;1.0.2 in java-net-maven2
[ivy:retrieve]  found com.sun.jersey#jersey-core;1.0.2 in java-net-maven2
[ivy:retrieve]  found asm#asm;3.1 in public
[ivy:retrieve]  found com.sun.jersey.contribs#jersey-spring;1.0.2 in 
java-net-ma
ven2
[ivy:retrieve]  found org.springframework#spring-aop;2.5.4 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-xfire-rt;1.10 in 
public
[ivy:retrieve]  found jdom#jdom;1.0 in public
[ivy:retrieve]  found javax.mail#mail;1.4 in public
[ivy:retrieve]  found org.codehaus.woodstox#wstx-asl;3.2.7 in public
[ivy:retrieve]  found stax#stax-api;1.0.1 in public
[ivy:retrieve]  found org.codehaus.xfire#xfire-all;1.2.2 in public
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-spring-app-rt;1.10 in pub
lic
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-xfire-client-rt;1.10 in p
ublic
[ivy:retrieve]  found commons-codec#commons-codec;1.3 in public
[ivy:retrieve]  found commons-httpclient#commons-httpclient;3.1 in public
[ivy:retrieve]  found wsdl4j#wsdl4j;1.6.2 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-gwt-rt;1.10 in public
[ivy:retrieve]  found com.google.gwt#gwt-servlet;1.4.60 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-amf-rt;1.10 in public
[ivy:retrieve]  found log4j#log4j;1.2.15 in public
[ivy:retrieve]  found com.adobe.blazeds#blazeds-common;3.0.0.544 in public
[ivy:retrieve]  found com.adobe.blazeds#blazeds-core;3.0.0.544 in public
[ivy:retrieve]  found 
backport-util-concurrent#backport-util-concurrent;3.1 in p
ublic
[ivy:retrieve]  found com.adobe.blazeds#blazeds-remoting;3.0.0.544 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-cxf-rt;1.10 in public
[ivy:retrieve]  found javax.annotation#jsr250-api;1.0 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-core;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-api;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-common-utilities;2.1.3 in public
[ivy:retrieve]  found javax.xml.bind#jaxb-api;2.1 in public
[ivy:retrieve]  found xml-resolver#xml-resolver;1.2 in public
[ivy:retrieve]  found org.apache.ws.commons.schema#XmlSchema;1.4.2 in public
[ivy:retrieve]  found commons-lang#commons-lang;2.4 in public
[ivy:retrieve]  found org.apache.neethi#neethi;2.0.4 in public
[ivy:retrieve]  found org.apache.cxf#cxf-common-schemas;2.1.3 in public
[ivy:retrieve]  found com.sun.xml.fastinfoset#FastInfoset;1.2.2 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-frontend-jaxws;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-bindings-soap;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-tools-common;2.1.3 in public
[ivy:retrieve]  found org.apache.velocity#velocity;1.5 in public
[ivy:retrieve]  found commons-collections#commons-collections;3.1 in public
[ivy:retrieve]  found oro#oro;2.0.8 in public
[ivy:retrieve]  found com.sun.xml.bind#jaxb-xjc;2.1.7 in public
[ivy:retrieve]  found javax.xml.soap#saaj-api;1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-databinding-jaxb;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-bindings-xml;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-frontend-simple;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-ws-addr;2.1.3 in public
[ivy:retrieve]  found com.sun.xml.messaging.saaj#saaj-impl;1.3.2 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-transports-http;2.1.3 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-jaxws-ri-rt;1.10 
in publi
c
[ivy:retrieve]  found cglib#cglib-nodep;2.1_3 in public
[ivy:retrieve]  found org.jvnet.jax-ws-commons.spring#jaxws-spring;1.8 
in java-n
et-maven2
[ivy:retrieve]  found com.sun.xml.ws#jaxws-rt;2.1.3 in public
[ivy:retrieve]  found com.sun.org.apache.xml.internal#resolver;20050927 
in publi
c
[ivy:retrieve]  found org.jvnet#mimepull;1.1 in public
[ivy:retrieve]  found org.apache.xbean#xbean-spring;2.7 in public
[ivy:retrieve]  found org.jvnet.staxex#stax-ex;1.2 in public
[ivy:retrieve]  found javax.activation#activation;1.1 in public
[ivy:retrieve]  found junit#junit;3.8 in public
[ivy:retrieve]  found com.sun.xml.stream.buffer#streambuffer;0.8 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-core;1.10 in public
[ivy:retrieve]  found javax.servlet#servlet-api;2.3 in public
[ivy:retrieve]  found net.sf.apt-jelly#apt-jelly-freemarker;2.6 in public
[ivy:retrieve]  found net.sf.apt-jelly#apt-jelly-core;2.6 in public
[ivy:retrieve]  found org.freemarker#freemarker;2.3.14 in public
[ivy:retrieve]  found commons-digester#commons-digester;1.7 in public
[ivy:retrieve]  found ant#ant;1.6.2 in public
[ivy:retrieve]  found junit#junit;4.5 in public
[ivy:retrieve]  found org.liquibase#liquibase-core;1.9.2 in public
[ivy:retrieve] :: resolution report :: resolve 9204ms :: artifacts dl 93ms
[ivy:retrieve]  :: evicted modules:
[ivy:retrieve]  asm#asm;2.2.3 by [asm#asm;3.1] in [runtime, compile, test]
[ivy:retrieve]  com.sun.xml.messaging.saaj#saaj-impl;1.3 by 
[com.sun.xml.messagi
ng.saaj#saaj-impl;1.3.2] in [runtime, compile, test]
[ivy:retrieve]  junit#junit;3.8 by [junit#junit;4.5] in [test]
        
---------------------------------------------------------------------
        |                  |            modules            ||   
artifacts   |
        |       conf       | number| search|dwnlded|evicted|| 
number|dwnlded|
        
---------------------------------------------------------------------
        |      default     |   0   |   0   |   0   |   0   ||   0   |   
0   |
        |      runtime     |   84  |   0   |   0   |   2   ||   83  |   
0   |
        |      compile     |   91  |   0   |   0   |   2   ||   91  |   
0   |
        |       test       |   86  |   0   |   0   |   3   ||   85  |   
0   |
        |      sources     |   0   |   0   |   0   |   0   ||   0   |   
0   |
        |     javadocs     |   0   |   0   |   0   |   0   ||   0   |   
0   |
        
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: nl.knowledgeplaza#kpprofiler-service
[ivy:retrieve]  confs: [default, runtime, compile, test, sources, javadocs]
[ivy:retrieve]  0 artifacts copied, 259 already retrieved (0kB/172ms)
/






Using:

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


/ivy-retrieve:
     [echo] Ivy is fetching all dependencies and copying them into the 
lib dir..
.
No ivy:settings found for the default reference 'ivy.instance'.  A 
default insta
nce will be used
[ivy:retrieve] :: Ivy 2.1.0-rc1 - 20090319213629 :: 
http://ant.apache.org/ivy/ :
:
:: loading settings :: file = C:\Documents and Settings\toeu\My 
Documents\kp\pro
filer\kpprofiler2\components\service\ivysettings.xml
[ivy:retrieve] :: resolving dependencies :: 
nl.knowledgeplaza#kpprofiler-service
;0.1
[ivy:retrieve]  confs: [runtime]
[ivy:retrieve]  *found org.codehaus.enunciate#enunciate-rt;1.10 in public*
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-core-rt;1.10 in 
public
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-core-annotations;1.10 in
public
[ivy:retrieve]  found xfire#xfire-jsr181-api;1.0-M1 in public
[ivy:retrieve]  found javax.ws.rs#jsr311-api;1.0 in public
[ivy:retrieve]  found javax.xml.ws#jaxws-api;2.1-1 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-rest-rt;1.10 in 
public
[ivy:retrieve]  found org.springframework#spring-beans;2.5.4 in public
[ivy:retrieve]  found commons-logging#commons-logging;1.0.4 in public
[ivy:retrieve]  found org.springframework#spring-core;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-context;2.5.4 in public
[ivy:retrieve]  found aopalliance#aopalliance;1.0 in public
[ivy:retrieve]  found org.springframework#spring-web;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-webmvc;2.5.4 in public
[ivy:retrieve]  found org.springframework#spring-context-support;2.5.4 
in public

[ivy:retrieve]  found org.codehaus.jettison#jettison;1.0.1 in public
[ivy:retrieve]  found commons-beanutils#commons-beanutils;1.7.0 in public
[ivy:retrieve]  found com.thoughtworks.xstream#xstream;1.3 in public
[ivy:retrieve]  found xpp3#xpp3_min;1.1.4c in public
[ivy:retrieve]  found com.sun.xml.bind#jaxb-impl;2.1.8 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-jersey-rt;1.10 in 
public
[ivy:retrieve]  found com.sun.jersey#jersey-server;1.0.2 in java-net-maven2
[ivy:retrieve]  found com.sun.jersey#jersey-core;1.0.2 in java-net-maven2
[ivy:retrieve]  found asm#asm;3.1 in public
[ivy:retrieve]  found com.sun.jersey.contribs#jersey-spring;1.0.2 in 
java-net-ma
ven2
[ivy:retrieve]  found org.springframework#spring-aop;2.5.4 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-xfire-rt;1.10 in 
public
[ivy:retrieve]  found jdom#jdom;1.0 in public
[ivy:retrieve]  found javax.mail#mail;1.4 in public
[ivy:retrieve]  found org.codehaus.woodstox#wstx-asl;3.2.7 in public
[ivy:retrieve]  found stax#stax-api;1.0.1 in public
[ivy:retrieve]  found org.codehaus.xfire#xfire-all;1.2.2 in public
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-spring-app-rt;1.10 in pub
lic
[ivy:retrieve]  found 
org.codehaus.enunciate#enunciate-xfire-client-rt;1.10 in p
ublic
[ivy:retrieve]  found commons-codec#commons-codec;1.3 in public
[ivy:retrieve]  found commons-httpclient#commons-httpclient;3.1 in public
[ivy:retrieve]  found wsdl4j#wsdl4j;1.6.2 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-gwt-rt;1.10 in public
[ivy:retrieve]  found com.google.gwt#gwt-servlet;1.4.60 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-amf-rt;1.10 in public
[ivy:retrieve]  found log4j#log4j;1.2.15 in public
[ivy:retrieve]  found com.adobe.blazeds#blazeds-common;3.0.0.544 in public
[ivy:retrieve]  found com.adobe.blazeds#blazeds-core;3.0.0.544 in public
[ivy:retrieve]  found 
backport-util-concurrent#backport-util-concurrent;3.1 in p
ublic
[ivy:retrieve]  found com.adobe.blazeds#blazeds-remoting;3.0.0.544 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-cxf-rt;1.10 in public
[ivy:retrieve]  found javax.annotation#jsr250-api;1.0 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-core;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-api;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-common-utilities;2.1.3 in public
[ivy:retrieve]  found javax.xml.bind#jaxb-api;2.1 in public
[ivy:retrieve]  found xml-resolver#xml-resolver;1.2 in public
[ivy:retrieve]  found org.apache.ws.commons.schema#XmlSchema;1.4.2 in public
[ivy:retrieve]  found commons-lang#commons-lang;2.4 in public
[ivy:retrieve]  found org.apache.neethi#neethi;2.0.4 in public
[ivy:retrieve]  found org.apache.cxf#cxf-common-schemas;2.1.3 in public
[ivy:retrieve]  found com.sun.xml.fastinfoset#FastInfoset;1.2.2 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-frontend-jaxws;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-bindings-soap;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-tools-common;2.1.3 in public
[ivy:retrieve]  found org.apache.velocity#velocity;1.5 in public
[ivy:retrieve]  found commons-collections#commons-collections;3.1 in public
[ivy:retrieve]  found oro#oro;2.0.8 in public
[ivy:retrieve]  found com.sun.xml.bind#jaxb-xjc;2.1.7 in public
[ivy:retrieve]  found javax.xml.soap#saaj-api;1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-databinding-jaxb;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-bindings-xml;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-frontend-simple;2.1.3 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-ws-addr;2.1.3 in public
[ivy:retrieve]  found com.sun.xml.messaging.saaj#saaj-impl;1.3.2 in public
[ivy:retrieve]  found org.apache.cxf#cxf-rt-transports-http;2.1.3 in public
[ivy:retrieve]  found org.codehaus.enunciate#enunciate-jaxws-ri-rt;1.10 
in publi
c
[ivy:retrieve]  found cglib#cglib-nodep;2.1_3 in public
[ivy:retrieve]  found org.jvnet.jax-ws-commons.spring#jaxws-spring;1.8 
in java-n
et-maven2
[ivy:retrieve]  found com.sun.xml.ws#jaxws-rt;2.1.3 in public
[ivy:retrieve]  found com.sun.org.apache.xml.internal#resolver;20050927 
in publi
c
[ivy:retrieve]  found org.jvnet#mimepull;1.1 in public
[ivy:retrieve]  found org.apache.xbean#xbean-spring;2.7 in public
[ivy:retrieve]  found org.jvnet.staxex#stax-ex;1.2 in public
[ivy:retrieve]  found javax.activation#activation;1.1 in public
[ivy:retrieve]  found junit#junit;3.8 in public
[ivy:retrieve]  found com.sun.xml.stream.buffer#streambuffer;0.8 in public
[ivy:retrieve] :: resolution report :: resolve 4547ms :: artifacts dl 78ms
[ivy:retrieve]  :: evicted modules:
[ivy:retrieve]  asm#asm;2.2.3 by [asm#asm;3.1] in [runtime]
[ivy:retrieve]  com.sun.xml.messaging.saaj#saaj-impl;1.3 by 
[com.sun.xml.messagi
ng.saaj#saaj-impl;1.3.2] in [runtime]
        
---------------------------------------------------------------------
        |                  |            modules            ||   
artifacts   |
        |       conf       | number| search|dwnlded|evicted|| 
number|dwnlded|
        
---------------------------------------------------------------------
        |      runtime     |   84  |   0   |   0   |   2   ||   83  |   
0   |
        
---------------------------------------------------------------------
[ivy:retrieve] :: retrieving :: nl.knowledgeplaza#kpprofiler-service
[ivy:retrieve]  confs: [runtime]

BUILD FAILED
C:\Documents and Settings\toeu\My 
Documents\kp\profiler\kpprofiler2\components\s
ervice\build.xml:44: impossible to ivy retrieve: 
java.lang.RuntimeException: pro
blem during retrieve of nl.knowledgeplaza#kpprofiler-service: 
java.lang.RuntimeE
xception: *Multiple artifacts of the module 
org.codehaus.enunciate#enunciate-rt;1
.10 are retrieved to the same file!* Update the retrieve pattern  to fix 
this err
or.
/

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