You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sebastien Pennec <se...@qos.ch> on 2006/08/10 12:20:12 UTC
Assembly module: binary exlusion
Hello,
I'm creating an assembly based on a few modules.
To include the dependencies of all modules in a module_name/lib directory, I'm using
the moduleSets/moduleSet elements in my assembly descriptor.
Unfortunately, the jar of the artifact that is being assembled is always included in
the lib directory. To prevent this, I wanted to do something like:
<binaries>
<outputDirectory>${artifactId}/lib</outputDirectory>
<includeDependencies>true</includeDependencies>
<unpack>false</unpack>
<excludes>
<exclude>${groupId}:${artifactId}</exclude>
<exclude>module_name*</exclude>
</excludes>
</binaries>
I've tried these two ways of filling the <exclude> elements, but none work.
Could anybody help me?
Thanks!
Sébastien
--
Sébastien Pennec
sebastien@qos.ch
Logback: The reliable, generic, fast and flexible logging framework for Java.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Assembly module: binary exlusion
Posted by John Casey <ca...@gmail.com>.
This should be fixed in the current 2.2-SNAPSHOT of the assembly plugin...if
you need help accessing this plugin, let me know.
-john
On 8/10/06, Sebastien Pennec <se...@qos.ch> wrote:
>
> Hello,
>
> I'm creating an assembly based on a few modules.
>
> To include the dependencies of all modules in a module_name/lib directory,
> I'm using
> the moduleSets/moduleSet elements in my assembly descriptor.
> Unfortunately, the jar of the artifact that is being assembled is always
> included in
> the lib directory. To prevent this, I wanted to do something like:
>
> <binaries>
> <outputDirectory>${artifactId}/lib</outputDirectory>
> <includeDependencies>true</includeDependencies>
> <unpack>false</unpack>
> <excludes>
> <exclude>${groupId}:${artifactId}</exclude>
> <exclude>module_name*</exclude>
> </excludes>
> </binaries>
>
>
> I've tried these two ways of filling the <exclude> elements, but none
> work.
>
> Could anybody help me?
>
> Thanks!
>
> Sébastien
> --
> Sébastien Pennec
> sebastien@qos.ch
>
> Logback: The reliable, generic, fast and flexible logging framework for
> Java.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>