In your dependency on log4j, do transitive="false" or conf="default->master".
I never ever use transitive dependency on 3rd-party dependencies for exactly this reason. The dependency graph is arbitrarily long, it pulls in stuff that I know I'll never need, or the repository can't host the binaries for licensing reasons. That being said, I have found these repositories are good to have in your public chain, they have many Sun jars that m2 central doesn't: http://download.java.net/maven/2/ http://repository.jboss.org/maven2/ -----Original Message----- From: eqe99 [mailto:[email protected]] Sent: Tuesday, February 03, 2009 6:53 PM To: [email protected] Subject: newbie: why does log4j pull down all sorts of files? ive got a toy project and i added log4j which proceeded to break by trying to pull down some Sun jars. now putting aside the question of why the sun jars arent available (licensing?), i have tried to exclude the other confs explicitly in the ivy.xml to no avail. can someone tell me what my total newbie error here is? thx much ======================================================================== = sample file: <ivy-module version="1.0"> <info organisation="com.wms" module="g2s-ws-demo"/> <configurations> <conf name="default" description="war file"/> </configurations> <publications> <artifact name="cws-war" type="war" conf="default" /> </publications> <dependencies> <dependency org="log4j" name="log4j" rev="1.2.15" conf="default" > <exclude conf="jmx,mail,jms"/> </dependency> <dependency org="junit" name="junit" rev="4.5" conf="default" /> </dependencies> </ivy-module> ======================================================================== = error message: [ivy:retrieve] confs: [default] [ivy:retrieve] found log4j#log4j;1.2.15 in exist [ivy:retrieve] found javax.mail#mail;1.4 in jboss [ivy:retrieve] found javax.activation#activation;1.1 in jboss [ivy:retrieve] found javax.jms#jms;1.1 in jboss [ivy:retrieve] found com.sun.jdmk#jmxtools;1.2.1 in exist [ivy:retrieve] found com.sun.jmx#jmxri;1.2.1 in exist [ivy:retrieve] found junit#junit;4.5 in exist [ivy:retrieve] :: resolution report :: resolve 4469ms :: artifacts dl 187ms --------------------------------------------------------------------- | | modules || artifacts | | conf | number| search|dwnlded|evicted|| number|dwnlded| --------------------------------------------------------------------- | default | 7 | 0 | 0 | 0 || 7 | 0 | --------------------------------------------------------------------- [ivy:retrieve] [ivy:retrieve] :: problems summary :: [ivy:retrieve] :::: WARNINGS [ivy:retrieve] [NOT FOUND ] com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar (125ms) [ivy:retrieve] ==== exist: tried [ivy:retrieve] http://repo.exist.com/maven2/com/sun/jdmk/jmxtools/1.2.1/jmxtools-1.2.1. jar [ivy:retrieve] [NOT FOUND ] com.sun.jmx#jmxri;1.2.1!jmxri.jar (62ms) [ivy:retrieve] ==== exist: tried [ivy:retrieve] http://repo.exist.com/maven2/com/sun/jmx/jmxri/1.2.1/jmxri-1.2.1.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: FAILED DOWNLOADS :: [ivy:retrieve] :: ^ see resolution messages for details ^ :: [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: [ivy:retrieve] :: com.sun.jdmk#jmxtools;1.2.1!jmxtools.jar [ivy:retrieve] :: com.sun.jmx#jmxri;1.2.1!jmxri.jar [ivy:retrieve] :::::::::::::::::::::::::::::::::::::::::::::: -- View this message in context: http://www.nabble.com/newbie%3A-why-does-log4j-pull-down-all-sorts-of-fi les--tp21821665p21821665.html Sent from the ivy-user mailing list archive at Nabble.com. ----------------------------------------- ==================================================== This message contains PRIVILEGED and CONFIDENTIAL information that is intended only for use by the named recipient. If you are not the named recipient, any disclosure, dissemination, or action based on the contents of this message is prohibited. In such case please notify us and destroy and delete all copies of this transmission. Thank you. ====================================================
