Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43CE7105CB for ; Thu, 18 Dec 2014 02:32:52 +0000 (UTC) Received: (qmail 4302 invoked by uid 500); 18 Dec 2014 02:32:51 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 4188 invoked by uid 500); 18 Dec 2014 02:32:51 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 4177 invoked by uid 99); 18 Dec 2014 02:32:51 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2014 02:32:51 +0000 Received: from mail-qc0-f170.google.com (mail-qc0-f170.google.com [209.85.216.170]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 34A761A01E0 for ; Thu, 18 Dec 2014 02:32:50 +0000 (UTC) Received: by mail-qc0-f170.google.com with SMTP id x3so242882qcv.29 for ; Wed, 17 Dec 2014 18:32:47 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.224.122.15 with SMTP id j15mr20389941qar.68.1418869967714; Wed, 17 Dec 2014 18:32:47 -0800 (PST) Received: by 10.96.209.13 with HTTP; Wed, 17 Dec 2014 18:32:47 -0800 (PST) In-Reply-To: References: <54899B72.6070802@caris.com> <20141216172534.7B0AE4340BED@dd34514.kasserver.com> Date: Wed, 17 Dec 2014 20:32:47 -0600 Message-ID: Subject: Re: MNG-1683: Zip packaging From: Paul Benedict To: Maven Developers List Content-Type: multipart/alternative; boundary=089e0149cfa4688329050a746833 --089e0149cfa4688329050a746833 Content-Type: text/plain; charset=UTF-8 Yes, this definitely helps, Stephen. Thanks for your detailed and well-written explanation. I appreciate it much. Cheers, Paul On Wed, Dec 17, 2014 at 9:22 AM, Stephen Connolly < stephen.alan.connolly@gmail.com> wrote: > > On Wednesday, December 17, 2014, Paul Benedict > wrote: > > > Stephen, I don't feel strongly about it but I don't think there is > another > > option. Unlike assembly:single which is used to create multiple > > distributions, this is about creating an artifact destined to be consumed > > as a dependency. Correct me if wrong, but Maven artifact types are meant > to > > produce one single/prime artifact, otherwise you have to begin specifying > > "type" element on your dependencies. > > > No you have it wrong there. > > Type defaults to `jar` if unspecified, so you will need to declare a type > to consume either the zip or tar.gz > > The only case I know of where you get away from that is the horrible hack > in jenkins plugins where you depend on the jar and the hpi plugin > up-interprets the actual type from the resolved pom so that hpi > "dependencies" are linked at runtime and non-hpi dependencies are packaged > in WEB-INF/lib > > Most of the other packaging types produce jar files and use the packaging > to determine the lifecycle > > Having said all that, the *default* descriptor should be just a zip... But > if you override the default you can have a descriptor that produces .tar.gz > and .tar.bz2 as well as .zip > > So I would say that the mojo should: > > * use its default descriptor if none in src/assembly > > * use the descriptor if one and only one in src/assembly > > * fail if more than one descriptor in src/assembly unless the user adds > config to say which one to use > > HTH > > > --089e0149cfa4688329050a746833--