Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E860C103FA for ; Mon, 3 Mar 2014 21:45:00 +0000 (UTC) Received: (qmail 73376 invoked by uid 500); 3 Mar 2014 21:44:56 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 73272 invoked by uid 500); 3 Mar 2014 21:44:56 -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 73260 invoked by uid 99); 3 Mar 2014 21:44:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 21:44:56 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of baerrach@gmail.com designates 209.85.128.169 as permitted sender) Received: from [209.85.128.169] (HELO mail-ve0-f169.google.com) (209.85.128.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 21:44:50 +0000 Received: by mail-ve0-f169.google.com with SMTP id pa12so4372920veb.28 for ; Mon, 03 Mar 2014 13:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=ba9UDBy01n9A0yAFB3L/KsSCu6gI3GBf/W0pYFhTZGM=; b=twRVFTX7W64V8oaMW30NcW3DIbYFD58joa5Eik/pb3nIW/QAxiSkazT/C0n+xi2cHB 6eql+wEXCCughzn8mHepSmgvjtRI/iu+fdEZaiiDmyKj57cVyT76RzqLqyzV/ITn5VfZ uOPHpgLabf9FbmdWck8lijL11h1kgyFf/AdVXC/fc5GcR7/GcBJ6xX3TNsBCrb3BPHsd N24Fy2QYepqjnDAf91xNMp43XOi0h9VzfsVph0v7ozww7KUA/iX+pYYrCyI1L8YbzB8s axUFc3hBUzs96aj41eYl7CJo33TijF7Lxc4PxX1l5AyzWyT+HH1I/UOQ9911eyFwK/3L Wt0g== MIME-Version: 1.0 X-Received: by 10.52.186.230 with SMTP id fn6mr1119922vdc.14.1393883069044; Mon, 03 Mar 2014 13:44:29 -0800 (PST) Received: by 10.58.48.131 with HTTP; Mon, 3 Mar 2014 13:44:28 -0800 (PST) In-Reply-To: <1393581801993-5786736.post@n5.nabble.com> References: <1393581801993-5786736.post@n5.nabble.com> Date: Tue, 4 Mar 2014 08:14:28 +1030 Message-ID: Subject: Re: Maven copies 3 jars in lib folder (skinny war) for no reason From: Barrie Treloar To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On 28 February 2014 20:33, poroto20 wrote: > I have one EAR project and I am trying to have a skinny war. It seems to be > working ok but for some reason it keeps copying 3 dependencies into war/lib > folder, which are commons-logging-1.0.4.jar, commons-codec-1.4.jar and > jboss-seam-2.2.1.Final.jar. > > I the EAR's pom I added `true`. I made sure I added > exclusions for those three jars, or they are `scope=provided`. I also added > `**/*.jar` in the WAR's pom file. > > I really can't understand maven's logic to create the war (or to copy those > jars). Run with -X You get oodles of feedback. Make sure you redirect this output to a file for investigation. Maven should tell you what gets included and where from and you can investigate from there. You will probably need to add an exclusion to the offending artifact. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org