Dependency:tree shows every jars transitively. If you want to compare the war content and something other, use dependency:list instead.
Anyway, which jar is listed in the dependency:tree that you think should be included in the war and isn't? Please show us the corresponding <dependency> block part from your pom AND the dependency:tree part, for the dependency that's problematic for you. Cheers. 2009/3/13 agent59624285 <[email protected]> > > The jar file listed on "mvn dependency:tree" and jar files inside the war > file are different. > > If I create an empty project and use the pom file the maven packages the > correct jar files, otherwise it adds about 7 extra jar files which makes my > webapp fail when I deploy it in jboss. But if I copy the correct jar files > created by the empty project with the original pom file, everything works > fine in jboss. > > I am using hibernate, spring, and jaxb. The jar files added by maven during > package phase are asm, asm-attrs, xml-apis, .. > > Is there a way to make maven stop adding extra jar files? > > Thanks, > > Let me know if I need to attach pom file > > > -- > View this message in context: > http://www.nabble.com/maven-adding-wrong-jar-files-in-war-lib-tp22500900p22500900.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
