Search the list archives for "jar-with-dependencies".

Wayne

On 4/18/07, Marcos Silva Pereira <[EMAIL PROTECTED]> wrote:
Hum, maybe you could resolve it with assembly plugin.

Take a look at: http://maven.apache.org/plugins/maven-assembly-plugin/

Kind Regards

On 4/18/07, Florian Ockhuysen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Using 'mvn package' I generated a jar for my application. This all works
> fine.
> However, two dependency jars are used that need to be included in the jar
> so they are always available at runtime (they're needed at
> compile-time, too btw). Of course, these dependencies were declared in the
> pom.xml and exist in my local maven repository.
> Just setting their <scope> element to 'runtime', doesn't work since
> they're also compile-time dependencies.
> I googled around and read documentation, but couldn't to find information
> on this.
>
> I solved the problem for now by putting class files from the jars in
> main/resources, but now I have to manually update these class files
> whenever a new version for one of the dependencies comes out.
> Something tells me there must be a more generic way to do this...
> Any of you have a solution??
>
> Greets,
>
> Florian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marcos Silva Pereira
recife - pe
[EMAIL PROTECTED]
skype: marcos.silva.pereira
http://blastemica.blogspot.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to