Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 54881 invoked from network); 20 Sep 2010 19:10:19 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Sep 2010 19:10:19 -0000 Received: (qmail 91288 invoked by uid 500); 20 Sep 2010 19:10:17 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 91216 invoked by uid 500); 20 Sep 2010 19:10:17 -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 91208 invoked by uid 99); 20 Sep 2010 19:10:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 19:10:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [207.183.49.139] (HELO production.artifact-software.com) (207.183.49.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Sep 2010 19:10:11 +0000 Received: from [192.168.2.11] (bas8-london14-1176015169.dsl.bell.ca [70.24.145.65]) by production.artifact-software.com (Postfix) with ESMTP id F30926A7DA6 for ; Mon, 20 Sep 2010 15:09:49 -0400 (EDT) Message-ID: <4C97B179.2070406@artifact-software.com> Date: Mon, 20 Sep 2010 15:09:45 -0400 From: Ron Wheeler User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 MIME-Version: 1.0 To: users@maven.apache.org Subject: Re: write dependencies into file during assembly References: <20100920185212.177040@gmx.net> In-Reply-To: <20100920185212.177040@gmx.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Can you not make your application program into a single jar "jar-with-dependencies" and avoid all this? That is much easier to make and distribute - maven assembly. It looks a lot more polished than an application that sprays dozens on files onto the disk. Ron On 20/09/2010 2:52 PM, Iron Eagle wrote: > Hi, > > thanks for your awnser. I want to create a script, that calls another binary (jsvc, that is also included in the assembly). That binary starts the actual java program as a service. But the binary needs special parameter. The classpath among other things. So I need to include the filename of all depending jar files, to be able to build a string for the classpath. > > I'll check the plugins, you suggested > > greetings > >> Depending on what you want to do, you seem to want to use a dedicated >> plugin, instead of what seems like hand-coding standard things? >> You seem to want to create an executable jar? >> What does your script contain, is it something very special or just a java >> command for example? >> >> If so, there's many solutions for you (exec-maven-plugins, >> maven-shade-plugin...). >> >> If you give more details, we'll be able to help you better. >> >> Cheers >> >> 2010/9/20 Iron Eagle >> >>> Hi, >>> >>> I have a maven project, that includes an assembly step in its lifecycle >>> (during package). I copy the dependencies of the project in a lib/> > > folder. >>> Additional, copy a script file into a bin/ folder. That scripts should >>> start the jvm and the application later. >>> >>> Now, I want to include the filenames of the depdendencies into the script >>> file in order to extend the classpath when starting the jvm. >>> >>> Is that possible? Can anyone help me? >>> >>> best regards >>> Luis >>> -- >>> GMX DSL SOMMER-SPECIAL: Surf& Phone Flat 16.000 für nur 19,99 Euro/mtl.!* >>> http://portal.gmx.net/de/go/dsl >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >>> For additional commands, e-mail: users-help@maven.apache.org >>> >>> >> >> -- >> Baptiste MATHUS - http://batmat.net >> Sauvez un arbre, >> Mangez un castor ! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org