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 90E6C10353 for ; Wed, 31 Jul 2013 09:12:48 +0000 (UTC) Received: (qmail 98076 invoked by uid 500); 31 Jul 2013 09:12:46 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 97801 invoked by uid 500); 31 Jul 2013 09:12:45 -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 97789 invoked by uid 99); 31 Jul 2013 09:12:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 09:12:44 +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 (nike.apache.org: domain of rotscher.ch@gmail.com designates 209.85.219.50 as permitted sender) Received: from [209.85.219.50] (HELO mail-oa0-f50.google.com) (209.85.219.50) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jul 2013 09:12:38 +0000 Received: by mail-oa0-f50.google.com with SMTP id i4so955186oah.23 for ; Wed, 31 Jul 2013 02:12:17 -0700 (PDT) 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=7tgobBljYukKgscnkpdq9Pv1kg0Tbslp/qtl4QhOqRk=; b=hPUOAqVOOSD8HpLvKj3GlsxwAkX3Z5hS6RV0C6JC8wp5atkUu5W7388eb9riDAQ1Qc QzPpLgq47qS2AgRVuJIGxK+Z4MbXd4s/oc1PfWYFpI9ZDAv4xFuj6gV/3uPUE/fmzzRL dFeLvYXLsHaEOeQoMZvgIV27p0KnmFV8waQzX/Nt1uyPdjT6y8rl3D9FomO3RMVZmgO6 C7LLH1w7Ys4XljDIOg5sHIH02neUNHhRBPcJNqVaGmYL3sQRRYqqv6SuOrauNgYOebes D7WqtmtpUgA5ROOsWvGV5S3q/iDwAnKZmrqJ6PfEnk9F67RVOa/hHG2srAo+icv3KapP 3Tvw== MIME-Version: 1.0 X-Received: by 10.182.215.193 with SMTP id ok1mr60391668obc.78.1375261937336; Wed, 31 Jul 2013 02:12:17 -0700 (PDT) Received: by 10.182.97.72 with HTTP; Wed, 31 Jul 2013 02:12:17 -0700 (PDT) In-Reply-To: <75F3A2D98EDE2545BDC06B5B6C1CEC51639F0104@ESGSCMB101.ericsson.se> References: <75F3A2D98EDE2545BDC06B5B6C1CEC51639EFEFC@ESGSCMB101.ericsson.se> <75F3A2D98EDE2545BDC06B5B6C1CEC51639F0104@ESGSCMB101.ericsson.se> Date: Wed, 31 Jul 2013 11:12:17 +0200 Message-ID: Subject: Re: Maven assembly single goal not works. From: =?ISO-8859-1?Q?Roger_Brechb=FChl?= To: Maven Users List Content-Type: multipart/alternative; boundary=001a11c2bc6c3f884f04e2cb1fb0 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c2bc6c3f884f04e2cb1fb0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable you configured *assembly:single* to be executed during the package phase, so calling *mvn package* also executes *assembly:single*. When you remove the *executions* part from your configuration, then you must call *mvn package single:assembly*. Cheers, Rotsch 2013/7/31 Tim Wu T > Hi, > > Really thanks for your suggestion. > > More clear now :) > > Just one small question, not so clear about this: > (which is needless with your configuration if you don't remove the > executions part) > > Thanks in advance. > > Br, > Tim > -----Original Message----- > From: Roger Brechb=FChl [mailto:rotscher.ch@gmail.com] > Sent: Wednesday, July 31, 2013 4:52 PM > To: Maven Users List > Subject: Re: Maven assembly single goal not works. > > when calling assembly:single only, the package phase and all its attached > plugins are not executed. Especially, the maven-jar-plugin is not execute= d, > so no jar file is generated and attached. Hence the error message. > > mvn package single:assembly (which is needless with your configuration if > you don't remove the executions part) > > Cheers, > Rotsch > > > > 2013/7/31 Tim Wu T > > > HI there, > > > > I try to use the assembly single goal to generate a jar with > > dependencies, my config looks like this: > > > > maven-assembly-plugin > > 2.3 > > > > > > > > > > org.testng.TestNG > > > > > > > > > > jar-with-dependencies > > > > > > > > > > make-assembly > > package > > > > single > > > > > > > > > > > > I can use the mvn clean install to generate jar with dependnecies > > well, but if I want to try assembly:single, than it will show me > > Cannot include project artifact: xxxxxx; it doesn't have an associated > > file or directory. > > > > Any comments for this? > > > > Br, > > Tim > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --001a11c2bc6c3f884f04e2cb1fb0--