maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Assemble a jar with dependent jars next to it
Date Fri, 19 Feb 2010 14:02:41 GMT
I think this is what you're looking for:
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/

/Anders

On Fri, Feb 19, 2010 at 14:57, Yaakov Chaikin <yaakov.chaikin@gmail.com>wrote:

> Hi all,
>
> Tried Googling, but nothing that useful came up... I am pretty sure
> it's possible to do this though...
>
> I have a multi-module project and one of the modules is a standalone
> executable with dependencies on other modules as well as other 3rd
> party libraries.
>
> I need to run an assembly such that the executable module ends up as a
> JAR with Class-Path in its manifest pointing to all of its JAR
> dependencies and place all the other dependencies (whatever they are -
> I don't want to have to specify them all by hand in assembly.xml)
> should be brought into the same directory and the Class-Path should
> have relative path pointing to them.
>
> Does anyone have some snippets they can share to accomplish this? The
> assembly documentation is pretty thin so I would so much love to avoid
> trial-and-error pattern.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Yaakov.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message