[
http://jira.codehaus.org/browse/MASSEMBLY-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_92824
]
Stephane Nicoll commented on MASSEMBLY-194:
-------------------------------------------
Another problem. I have more stuff in my libs directory that I don't want (it's
packaged in another dir of my assembly). So I try to exclude them explicitely.
My config is like that
{code:xml}
<!-- main libraries -->
<dependencySet>
<useTransitiveFiltering>true</useTransitiveFiltering>
<outputDirectory>libs</outputDirectory>
<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
<scope>runtime</scope>
<!-- Make sure to exclude everything specific here -->
<excludes>
<exclude>com.foo.samples:*</exclude>
[...]
<exclude>com.foo.shared.blah:*</exclude>
<exclude>log4j:log4j</exclude>
</excludes>
</dependencySet>
<!-- samples specific libraries -->
<dependencySet>
<useTransitiveFiltering>true</useTransitiveFiltering>
<outputDirectory>samples/dependencies/libs</outputDirectory>
<outputFileNameMapping>${artifactId}.${extension}</outputFileNameMapping>
<scope>runtime</scope>
<includes>
<include>com.foo.shared.blah:*</include>
<include>log4j:log4j</include>
</includes>
</dependencySet>
{code}
The blah and log4j stuff are indeed packaged in samples/dependencies/libs *AND*
in libs.
Running Maven outputs the following:
{noformat}
[INFO] Processing DependencySet (output=libs)
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.foo.shared.blah:*'
[INFO] Processing DependencySet (output=samples/dependencies/libs)
{noformat}
I am rolling back to 2.2-snap.
> unnecessary dependency expansion regression
> -------------------------------------------
>
> Key: MASSEMBLY-194
> URL: http://jira.codehaus.org/browse/MASSEMBLY-194
> Project: Maven 2.x Assembly Plugin
> Issue Type: Bug
> Affects Versions: 2.2-beta-1
> Reporter: Brett Porter
> Assignee: John Casey
> Fix For: 2.2-beta-1
>
> Attachments: assembly-test.tar.gz
>
>
> See the attached test project. It requires that you've run mvn clean install
> for continuum previously so there is a sizable dependency in the repo to play
> with.
> If you build with assembly 2.1, only the tarball is expanded and included in
> the final distribution (about 27mb)
> With 2.2-beta-1, all the transitive dependencies are also expanded and
> included (about 65mb).
> This is a functionality change, but also consumes a very large amount of
> memory and CPU.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira