maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Wheeler <>
Subject Re: write dependencies into file during assembly
Date Mon, 20 Sep 2010 19:09:45 GMT
  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.


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.!*
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
>>> For additional commands, e-mail:
>> -- 
>> Baptiste<Batmat>  MATHUS -
>> Sauvez un arbre,
>> Mangez un castor !

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message