I have attached the pom file. If I generate war file from an empty project (without any source code), I get correct jar files in the war file. But when my source code is present, it adds asm-1.5.3.jar, asm-attrs-1.5.3.jar, cglib-2.1_3.jar,xml-apis-1.0.b2.jar, .. etc .. (as I said previously, these libraries crashes jboss server instance in staging. If I take the jar files generated by empty project, then everything works fine)
dependency:list also does not list asm libraries as dependency. Is this a common problem? Baptiste MATHUS-4 wrote: > > 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 ! > > http://www.nabble.com/file/p22519847/pom.xml pom.xml -- View this message in context: http://www.nabble.com/maven-adding-wrong-jar-files-in-war-lib-tp22500900p22519847.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]
