Hi David! Just for getting it clear - is 'myblock' some block, or are you listing dependencies for the whole web-application, since there could be a dep on commons-logging wich is not mentioned out of 'myblock'
Best regards, Patrick -------- Original-Nachricht -------- > Datum: Sun, 20 Jul 2008 18:57:13 +0100 > Von: David Legg <[EMAIL PROTECTED]> > An: [email protected] > Betreff: Re: C2.2 - Cannot remove jar files from classpath using Maven > Thanks again Reinhard, > > I ran 'mvn dependency:tree' from the 'myblock' folder and got the > following: - > > [INFO] Scanning for projects... > [INFO] Searching repository for plugin with prefix: 'dependency'. > [INFO] > ------------------------------------------------------------------------ > [INFO] Building myblock > [INFO] task-segment: [dependency:tree] > [INFO] > ------------------------------------------------------------------------ > [INFO] [dependency:tree] > [INFO] com.mycompany:myblock:jar:1.0.0 > [INFO] +- org.apache.cocoon:cocoon-core:jar:2.2.0:compile > [INFO] | +- > org.apache.cocoon:cocoon-spring-configurator:jar:1.0.2:compile > [INFO] | | +- org.springframework:spring-core:jar:2.5.1:compile > [INFO] | | +- org.springframework:spring-context:jar:2.5.1:compile > [INFO] | | | \- aopalliance:aopalliance:jar:1.0:compile > [INFO] | | +- org.springframework:spring-beans:jar:2.5.1:compile > [INFO] | | +- org.springframework:spring-aop:jar:2.5.1:compile > [INFO] | | \- org.springframework:spring-web:jar:2.5.1:compile > [INFO] | +- org.apache.cocoon:cocoon-configuration-api:jar:1.0.2:compile > [INFO] | +- > org.apache.cocoon:cocoon-pipeline-components:jar:1.0.0:compile > [INFO] | | +- org.apache.cocoon:cocoon-pipeline-impl:jar:1.0.0:compile > [INFO] | | | +- org.apache.cocoon:cocoon-pipeline-api:jar:1.0.0:compile > [INFO] | | | | \- > org.apache.excalibur.components:excalibur-xmlutil:jar:2.2.1:compile > [INFO] | | | +- > org.apache.excalibur.containerkit:excalibur-instrument-api:jar:2.2.1:compile > [INFO] | | | \- jakarta-regexp:jakarta-regexp:jar:1.4:compile > [INFO] | | +- org.apache.cocoon:cocoon-util:jar:1.0.0:compile > [INFO] | | \- org.apache.cocoon:cocoon-xml-api:jar:1.0.0:compile > [INFO] | +- org.apache.cocoon:cocoon-sitemap-impl:jar:1.0.0:compile > [INFO] | | +- org.apache.cocoon:cocoon-sitemap-api:jar:1.0.0:compile > [INFO] | | +- commons-collections:commons-collections:jar:3.2:compile > [INFO] | | \- commons-jxpath:commons-jxpath:jar:1.2:compile > [INFO] | | \- junit:junit:jar:3.8:compile > [INFO] | +- org.apache.cocoon:cocoon-sitemap-components:jar:1.0.0:compile > [INFO] | +- org.apache.cocoon:cocoon-xml-resolver:jar:1.0.0:compile > [INFO] | | \- org.apache.cocoon:cocoon-xml-impl:jar:1.0.0:compile > [INFO] | +- org.apache.cocoon:cocoon-thread-api:jar:1.0.0:compile > [INFO] | | \- concurrent:concurrent:jar:1.3.4:compile > [INFO] | +- org.apache.cocoon:cocoon-xml-util:jar:1.0.0:compile > [INFO] | +- > org.apache.excalibur.components:excalibur-pool-api:jar:2.2.1:compile > [INFO] | | \- > org.apache.avalon.framework:avalon-framework-api:jar:4.3.1:compile > [INFO] | +- > org.apache.excalibur.containerkit:excalibur-logger:jar:2.2.1:compile > [INFO] | +- > org.apache.excalibur.components:excalibur-store:jar:2.2.1:compile > [INFO] | +- > org.apache.avalon.framework:avalon-framework-impl:jar:4.3.1:compile > [INFO] | +- commons-io:commons-io:jar:1.3.1:compile > [INFO] | +- commons-jexl:commons-jexl:jar:1.0:compile > [INFO] | +- xalan:xalan:jar:2.7.0:compile > [INFO] | +- xerces:xercesImpl:jar:2.8.1:compile > [INFO] | +- xml-apis:xml-apis:jar:1.3.02:compile > [INFO] | +- xml-resolver:xml-resolver:jar:1.2:compile > [INFO] | +- org.apache.cocoon:cocoon-store-impl:jar:1.0.0:runtime > [INFO] | | \- net.sf.ehcache:ehcache:jar:1.2.4:runtime > [INFO] | \- org.apache.cocoon:cocoon-thread-impl:jar:1.0.0:runtime > [INFO] +- > org.apache.cocoon:cocoon-servlet-service-components:jar:1.0.0:compile > [INFO] | +- > org.apache.cocoon:cocoon-servlet-service-impl:jar:1.0.0:compile > [INFO] | | \- > org.apache.excalibur.components:excalibur-sourceresolve:jar:2.2.3:compile > [INFO] | \- org.apache.cocoon:cocoon-linkrewriter-impl:jar:1.0.0:compile > [INFO] +- org.apache.cocoon:cocoon-template-impl:jar:1.1.0:compile > [INFO] | +- > org.apache.cocoon:cocoon-expression-language-api:jar:1.0.0:compile > [INFO] | \- > org.apache.cocoon:cocoon-expression-language-impl:jar:1.0.0:compile > [INFO] | \- commons-lang:commons-lang:jar:2.3:compile > [INFO] +- org.apache.cocoon:cocoon-flowscript-impl:jar:1.0.0:compile > [INFO] | \- rhino:js:jar:1.6R7:compile > [INFO] \- javax.servlet:servlet-api:jar:2.4:provided > > Interestingly, there is no mention of commons-logging after I added the > exclusions to the pom file. But why does it bother to copy the > commons-logging jar to the WEB-INF/lib folder if it knows nothing > depends on it? > > David Legg > > > Reinhard Pötz wrote: > >> I suppose I could start fiddling with plugin exclusions but this is > >> getting silly. Do I really have to work this hard to try to make > >> sure a jar file isn't included in the classpath? > > > > Use the Maven dependency plugin (the 'tree' goal) to find out what > > dependencies have a dependency on the libraries that you want to > > remove. Then you have to remove them from ALL occurrences by adding > > <exclusions> sections. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
