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 59EAC10AF4 for ; Fri, 4 Apr 2014 23:43:39 +0000 (UTC) Received: (qmail 38126 invoked by uid 500); 4 Apr 2014 23:43:35 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 38066 invoked by uid 500); 4 Apr 2014 23:43:35 -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 38058 invoked by uid 99); 4 Apr 2014 23:43:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2014 23:43:34 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.116.25 as permitted sender) Received: from [65.55.116.25] (HELO blu0-omc1-s14.blu0.hotmail.com) (65.55.116.25) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Apr 2014 23:43:28 +0000 Received: from BLU172-W50 ([65.55.116.8]) by blu0-omc1-s14.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 4 Apr 2014 16:43:06 -0700 X-TMN: [eq7RAHgoKWRrC1R6x2JWHBUN6cdt1FYm] X-Originating-Email: [mgainty@hotmail.com] Message-ID: Content-Type: multipart/alternative; boundary="_8d0aed17-2689-4d73-b6c6-896a6eaef463_" From: Martin Gainty To: "users@maven.apache.org" Subject: RE: how to exclude log4j.properties when mvn assembly:single? Date: Fri, 4 Apr 2014 19:43:06 -0400 Importance: Normal In-Reply-To: References: , , MIME-Version: 1.0 X-OriginalArrivalTime: 04 Apr 2014 23:43:06.0685 (UTC) FILETIME=[A0CBA6D0:01CF505F] X-Virus-Checked: Checked by ClamAV on apache.org --_8d0aed17-2689-4d73-b6c6-896a6eaef463_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Li- =20 http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html#class_d= ependencySet maven-assembly-plugin .... log4j:log4j < /dependencySets> ........ although it might be easier to put into ${project.basedir}= /resources/assemblies/dependencySet-excludes.xml as seen here dependencySet-excludes zip log4j:log4j < /dependencySets> ........ =20 > On Thu=2C Apr 3=2C 2014 at 9:15 PM=2C Li Li wrote: >=20 > > seems very complicated=2C where shoud I put this file? > > > > On Fri=2C Apr 4=2C 2014 at 10:08 AM=2C Curtis Rueden wrote: > > > Hi Li=2C > > > > > >> the log4j.properties is included in my application. > > >> how to exclude it? > > > > > > Did you try with a custom assembly descriptor=2C and put the file in = an > > > inside a ? > > > > > > https://maven.apache.org/plugins/maven-assembly-plugin/assembly.html > > > > > > Regards=2C > > > Curtis > > > > > > > > > On Thu=2C Apr 3=2C 2014 at 4:24 AM=2C Li Li wro= te: > > > > > >> I want to jar my program with all the dependencies. I have a > > >> dependency of hadoop. the log4j.properties is included in my > > >> application. > > >> how to exclude it? > > >> I have tried this but no luck > > >> > > >> maven-assembly-plugin > > >> > > >> > > >> **/log4j.properties > > >> > > >> > > >> --------------------------------------------------------------------= - > > >> To unsubscribe=2C e-mail: users-unsubscribe@maven.apache.org > > >> For additional commands=2C e-mail: users-help@maven.apache.org > > >> > > >> > > > > --------------------------------------------------------------------- > > To unsubscribe=2C e-mail: users-unsubscribe@maven.apache.org > > For additional commands=2C e-mail: users-help@maven.apache.org > > > > = --_8d0aed17-2689-4d73-b6c6-896a6eaef463_--