Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 17005 invoked from network); 15 Mar 2009 03:42:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2009 03:42:55 -0000 Received: (qmail 5825 invoked by uid 500); 15 Mar 2009 03:42:46 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 5760 invoked by uid 500); 15 Mar 2009 03:42:46 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 5749 invoked by uid 99); 15 Mar 2009 03:42:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 20:42:46 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2009 03:42:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LihEu-0001LQ-CV for users@maven.apache.org; Sat, 14 Mar 2009 20:42:16 -0700 Message-ID: <22519847.post@talk.nabble.com> Date: Sat, 14 Mar 2009 20:42:16 -0700 (PDT) From: agent59624285 To: users@maven.apache.org Subject: Re: maven adding wrong jar files in war lib In-Reply-To: <562346790903140258y3e95e4a7j2ff4471259708a93@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: agent59624285@spamcorptastic.com References: <22500900.post@talk.nabble.com> <562346790903140258y3e95e4a7j2ff4471259708a93@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org 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 block part from your pom AND > the dependency:tree part, for the dependency that's problematic for you. > > Cheers. > > 2009/3/13 agent59624285 > >> >> 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: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> > > > -- > Baptiste 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: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org