You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "J. Matthew Pryor" <jm...@mobiquity.net> on 2006/08/22 07:14:14 UTC
examples of assembly descriptor that excludes dependencies
I am trying to exclude dependencies from a dependcySet in an assembly
descriptor, but can't find any examples of how to do it.
>From looking at the code it looks like I should be able to exclude
dependencies by groupId/artifactId but I can't seem to get the syntax right
This is what I tried with maven-assembly-plugin 2.0.1 & 2.1
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<scope>runtime</scope>
<excludes><exclude>
<dependency>
<groupId>serialio</groupId>
<artifactId>libjspLux86</artifactId>
<version>1.0</version>
<type>so</type>
</dependency>
<dependency>
<groupId>serialio</groupId>
<artifactId>jspWin</artifactId>
<version>1.0</version>
<type>dll</type>
</dependency>
<dependency>
<groupId>serialio</groupId>
<artifactId>libjspMacOSX</artifactId>
<version>1.0</version>
<type>jnilib</type>
</dependency>
</exclude></excludes>
</dependencySet>
</dependencySets>
Any help appreciated
jmp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: examples of assembly descriptor that excludes dependencies
Posted by Barrie Treloar <ba...@gmail.com>.
On 8/22/06, J. Matthew Pryor <jm...@mobiquity.net> wrote:
> Gee thanks. My google search did much worse, I'll try nabble next time.
>
> Now I have to try & get my head around <classifier/> ;-)
Your welcome.
Classifier is easy. For most things it is empty!
The assembly plugin uses the classifier to differentiate the assembled
artifact it will put into the repository and the classifier value is
the <assembly><id> value.
So if your plugin is:
<groupId>my.company</groupId>
<artifactId>foo</artifactId>
<version>1.0</version>
and your assembly file is:
<assembly>
<id>bin</id>
<formats>
<format>zip</format>
</formats>
Then your assemblies will be placed into the repository as:
my.company.foo-1.0-<id in assembly>.<format>
e.g.
my.company.foo-1.0-bin.zip
(for an id of bin and format zip)
or
my.company.foo-1.0-bin.tar.gz
(for an id of bin and format tar.gz)
To compare that with packaging, e.g. your artifact is packaged as a
jar then the artifact placed into the repository will be (note that
there is no classifier present)
my.company.foo-1.0.jar
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: examples of assembly descriptor that excludes dependencies
Posted by "J. Matthew Pryor" <jm...@mobiquity.net>.
Gee thanks. My google search did much worse, I'll try nabble next time.
Now I have to try & get my head around <classifier/> ;-)
jmp
Barrie Treloar wrote:
> On 8/22/06, J. Matthew Pryor <jm...@mobiquity.net> wrote:
>> I am trying to exclude dependencies from a dependcySet in an assembly
>> descriptor, but can't find any examples of how to do it.
>>
>> From looking at the code it looks like I should be able to exclude
>> dependencies by groupId/artifactId but I can't seem to get the syntax
>> right
>
> Sure,
> A nabble search on assembly and exclude yields:
> http://www.nabble.com/forum/ViewPost.jtp?post=5373590&framed=y
>
> ---------------------------------------------------------------------
> 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: examples of assembly descriptor that excludes dependencies
Posted by Barrie Treloar <ba...@gmail.com>.
On 8/22/06, J. Matthew Pryor <jm...@mobiquity.net> wrote:
> I am trying to exclude dependencies from a dependcySet in an assembly
> descriptor, but can't find any examples of how to do it.
>
> From looking at the code it looks like I should be able to exclude
> dependencies by groupId/artifactId but I can't seem to get the syntax right
Sure,
A nabble search on assembly and exclude yields:
http://www.nabble.com/forum/ViewPost.jtp?post=5373590&framed=y
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org