Hi,

Take a look at the Maven Assembly Plugin [1], especially its unpack goal [2]
in combination with the predefined descriptor "jar-with-dependencies" [3]. I
think this does exactly what you want.

Hth,

[1] http://maven.apache.org/plugins/maven-assembly-plugin/
[2] http://maven.apache.org/plugins/maven-assembly-plugin/unpack-mojo.html
[3]
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html#jar-with-dependencies

Nick Stolwijk
~Java Developer~

Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl


On Tue, Aug 19, 2008 at 5:57 AM, Wayne Fay <[EMAIL PROTECTED]> wrote:

> On 8/18/08, sairndain <[EMAIL PROTECTED]> wrote:
> >
> > What I want to do is create a java application jar that also includes
> other
> > "jar" files that are required in its application's classpath....
>
> You realize that "jars inside a jar" is not supported by the default
> Sun JVM classloader, right?
>
> This is a packaging approach supported by EARs and WARs, but not JARs
> unless you are running a specialized classloader.
>
> You can also unzip the various dependency jars (into /target) and
> include them in your jar, which would give you a single (large) jar
> file that can execute your app. The dependency plugin can help with
> this and/or assembly plugin.
>
> Wayne
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to