You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jan Torben Heuer <jt...@mail2003.dnsalias.org> on 2008/04/20 20:40:23 UTC
collection of dependencies
Hi,
how can I put all (transitive) dependencies into one directory/zip-file? I
tried the assembly plugin, but the "transitive dependencies" descriptor
puts everything into one jar - that doesn't work in my case.
Thanks,
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: collection of dependencies
Posted by Jan Torben Heuer <jt...@mail2003.dnsalias.org>.
Wendy Smoak wrote:
> http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html
>
> If that's not quite it, you can write your own assembly descriptor
> that does exactly what you need.
Where do I have to put the <assembly> tag?
The following doesn't work:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<assembly>
<containerDescriptorHandlers>
<containerDescriptorHandler>
<bin />
</containerDescriptorHandler>
</containerDescriptorHandlers>
<dependencySets>
<dependencySet>
<outputFileNameMapping />
<useTransitiveDependencies />
</dependencySet>
</dependencySets>
<componentDescriptors />
</assembly>
</configuration>
</plugin>
[INFO] Error reading assemblies: No assembly descriptors found.
Thanks,
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: collection of dependencies
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
The plugin site shows several of the predefined ones to get you started.
Then look at the descriptor options and tweak what you need.
-----Original Message-----
From: Karthik Krishnan [mailto:krishnan.1000@gmail.com]
Sent: Monday, April 21, 2008 1:58 PM
To: Maven Users List
Subject: Re: collection of dependencies
Hi,
Is there a tutorial to show how to create an assembly descriptor?
Thanks,
Karthik
On Sun, Apr 20, 2008 at 3:27 PM, Wendy Smoak <ws...@gmail.com> wrote:
> On Sun, Apr 20, 2008 at 11:40 AM, Jan Torben Heuer
> <jt...@mail2003.dnsalias.org> wrote:
> > how can I put all (transitive) dependencies into one
> directory/zip-file? I
> > tried the assembly plugin, but the "transitive dependencies"
descriptor
> > puts everything into one jar - that doesn't work in my case.
>
> It sounds like you might be using the 'jar-with-dependencies' assembly
> descriptor. If so, try 'bin' and see if that's closer to what you
> want.
>
>
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.ht
ml
>
> If that's not quite it, you can write your own assembly descriptor
> that does exactly what you need.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: collection of dependencies
Posted by Karthik Krishnan <kr...@gmail.com>.
Hi,
Is there a tutorial to show how to create an assembly descriptor?
Thanks,
Karthik
On Sun, Apr 20, 2008 at 3:27 PM, Wendy Smoak <ws...@gmail.com> wrote:
> On Sun, Apr 20, 2008 at 11:40 AM, Jan Torben Heuer
> <jt...@mail2003.dnsalias.org> wrote:
> > how can I put all (transitive) dependencies into one
> directory/zip-file? I
> > tried the assembly plugin, but the "transitive dependencies" descriptor
> > puts everything into one jar - that doesn't work in my case.
>
> It sounds like you might be using the 'jar-with-dependencies' assembly
> descriptor. If so, try 'bin' and see if that's closer to what you
> want.
>
> http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html
>
> If that's not quite it, you can write your own assembly descriptor
> that does exactly what you need.
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: collection of dependencies
Posted by Wendy Smoak <ws...@gmail.com>.
On Sun, Apr 20, 2008 at 11:40 AM, Jan Torben Heuer
<jt...@mail2003.dnsalias.org> wrote:
> how can I put all (transitive) dependencies into one directory/zip-file? I
> tried the assembly plugin, but the "transitive dependencies" descriptor
> puts everything into one jar - that doesn't work in my case.
It sounds like you might be using the 'jar-with-dependencies' assembly
descriptor. If so, try 'bin' and see if that's closer to what you
want.
http://maven.apache.org/plugins/maven-assembly-plugin/descriptor-refs.html
If that's not quite it, you can write your own assembly descriptor
that does exactly what you need.
--
Wendy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org