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 00D4210DF9 for ; Thu, 5 Sep 2013 06:18:56 +0000 (UTC) Received: (qmail 7142 invoked by uid 500); 5 Sep 2013 06:18:53 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 7074 invoked by uid 500); 5 Sep 2013 06:18:53 -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 7066 invoked by uid 99); 5 Sep 2013 06:18:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 06:18:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anders.g.hammar@gmail.com designates 74.125.82.46 as permitted sender) Received: from [74.125.82.46] (HELO mail-wg0-f46.google.com) (74.125.82.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Sep 2013 06:18:48 +0000 Received: by mail-wg0-f46.google.com with SMTP id k14so1271251wgh.1 for ; Wed, 04 Sep 2013 23:18:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=wEnkKu6pLtXh+oMbxCFQMCnDjQAqnHx8/V3dElRkaoQ=; b=eRAsOpvfg8zPQ5XTokJb+R5nalJnwnvqvZ9GbmOA6u+k5ZpH4Xsqu/y9QlBF9z6RDE 7zzvXtsnBZzsOif0roIODvLNUeoQHCC+Auoy3tgs1f815rl9G9WI89oOkIoH1niOc7Z4 tbG5JiQ6xJJFkZVka3tug2s4u7ZH1md4l88G7w1XPaRXF3CLH7437jm3Dbtf027czrAU DLKSYW0ElAPjlNP0L9GWToh2zROysmTKkW5cozHtbkiDqdGuBvkk1HGBm9fqaCd4+grS z6RwP5FB85ZGqbxUnbUW/S/fYv6axIHb3sUwFUyujqjm/GztTjR0zqElp5osHjulIBES i4Yw== MIME-Version: 1.0 X-Received: by 10.194.93.3 with SMTP id cq3mr5567617wjb.26.1378361907409; Wed, 04 Sep 2013 23:18:27 -0700 (PDT) Sender: anders.g.hammar@gmail.com Received: by 10.194.34.66 with HTTP; Wed, 4 Sep 2013 23:18:27 -0700 (PDT) In-Reply-To: <0c0b01cea9e6$f8e6a380$eab3ea80$@idfconnect.com> References: <0a2b01cea931$7de38f00$79aaad00$@idfconnect.com> <0c0b01cea9e6$f8e6a380$eab3ea80$@idfconnect.com> Date: Thu, 5 Sep 2013 08:18:27 +0200 X-Google-Sender-Auth: -w3Rjhy2zXI_TP2hIPk5H3Cg_m0 Message-ID: Subject: Re: shade plugin usage From: Anders Hammar To: Maven Users List Content-Type: multipart/alternative; boundary=047d7bb04822dcf88804e59ce32c X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb04822dcf88804e59ce32c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Help the Java community kill all =FCberjars... /Anders On Thu, Sep 5, 2013 at 5:21 AM, Richard Sand wrote: > Hi Anders - thanks for your reply. I agree with your advice - for this > particular project artifact is a case where we want to offer both options= , > and the uberjar is mainly an aggregation of our product apis. But I > definitely understand the danger you are describing. > > -Richard > > > -----Original Message----- > From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On > Behalf > Of Anders Hammar > Sent: Wednesday, September 04, 2013 2:08 AM > To: Maven Users List > Subject: Re: shade plugin usage > > First, try to stay away from the =FCberjar path. It's normally not the wa= y to > go today, but you should use the jar and it's dependencies instead. I've > seen many case where people use a =FCberjar just to try to make their lif= e > simpler but ending up with other issues instead. A proper classpath is th= e > way to go in my opinion. > > I guess your approach of deploying the =FCberjar and a dep-reduced-pom wo= uld > work, but please remember to deploy it to your remote repo as well (and n= ot > just your local repo). Somewhere in the back of my head I recall a simila= r > discussion earlier. Not sure if someone brought up any issues though. > Having said that, the reason for deploying the =FCberjar at a separate > coordinate would be to have a separate pom with reduced deps. This > indicates > that you plan on use the pom to get the dependencies and in that case you > should try to stick with the original jar instead and work with the prope= r > set of deps. > > /Anders > > > On Wed, Sep 4, 2013 at 7:42 AM, Richard Sand wrote= : > > > I've a project that uses shade to create an uberjar - since I want > > that uberjar artifact to be available for use in other projects, does > > it make sense to *not* attach the artifact in shade, but rather have > > shade create the uberjar and dependency-reduced-pom, and then use > > install:install-file to grab the uberjar and drp.xml and install with > > a new unique artifactid (as opposed to a classifier of the original > > artifact)? > > > > Still feeling my way down the Maven Way... > > > > -Richard > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > > For additional commands, e-mail: users-help@maven.apache.org > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --047d7bb04822dcf88804e59ce32c--