Ok,
Thanks for your answer
Damien
Barrie Treloar a écrit :
On 7/25/06, Damien Viel <[EMAIL PROTECTED]> wrote:
Thank for your help.
I've tried your solution with a dedicated project for the build which
has dependencies on the binary assemblies. But my assembly still empty.
This is because you can not use the built in assemblies.
You need to write your own.
And I call the pre-defined Descriptor Files : jar-with-dependencies.
http://maven.apache.org/plugins/maven-assembly-plugin/predefined.html
Here is what I have added to the assembly docs in a patch:
* How to include/exclude artifacts
Currently the include/exclude format is based upon the dependency
conflict id
which has a form of: <<<groupId:artifactId:type:classifier>>>. A shortened
form of the dependency conflict id may also be used
<<<groupId:artifactId>>>.
The check for inclusion/exclusion is done based on either the dependency
conflict id or the shortened form as a <<<String.equals()>>> so it must
be an identical match for it to be included or excluded. At present
there is
no support for regular expressions.
This example excludes the log4j and commons-lang jar files from the
assembly.
This would be useful when you are building a super distribution
assembly which
contained sub distributions (i.e. other already assembled zips or tars)
where
in your pom you are depenedent upon those distributions. But because the
distributions transitively depend upon the project's dependencies the
assembly
also includes the jar files (which are already in the assemblies and don't
need to be duplicated)
Your pom might include something like:
-----
<dependencies>
<dependency>
<groupId>YOUR GROUP</groupId>
<artifactId>YOUR ARTIFACT</artifactId>
<version>YOUR VERSION</version>
<classifier>bin</classifier>
<type>zip</type>
</dependency>
-----
And then in your assembly you exclude all the jar dependencies pulled in
from the binary assembly. In this example the commons-lang and log4j jars
are included unnecessarily (as they are in the bin.zip file already)
-----
<dependencySets>
<dependencySet>
....
<excludes>
<exclude>commons-lang:commons-lang</exclude>
<exclude>log4j:log4j</exclude>
</excludes>
</dependencySet>
....
</dependencySets>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
--------------------------------------------------
Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
--------------------------------------------------
| http://www.improve-foundations.com
__/ \__ | http://www.improve.fr
improve | http://www.application-servers.com
/_____\-| http://www.improve-technologies.com
--------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]