[
http://jira.codehaus.org/browse/MASSEMBLY-194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_100408
]
Stephane Nicoll commented on MASSEMBLY-194:
-------------------------------------------
OK. I don't have much time right now so I guess the best is to give you more
details.
the problem lies in the excludes filter. It seems like it's completely unable
to exclude a set of artifacts based on the groupId and the type for instance
In a dependency set I have this:
{code:xml}
<excludes>
<!-- samples -->
<exclude>com.blah.samples:*</exclude>
<!-- samples dependencies -->
<exclude>log4j:log4j</exclude>
<!-- tilapia bundles -->
<exclude>com.blah.shared.tilapia:*:zip:bundle</exclude>
<!-- documentation -->
<exclude>com.blah.shared.tilapia.doc:*:zip</exclude>
</excludes>
{code}
Running the assembly on this gives namely
{noformat}
[INFO] Processing DependencySet (output=libs)
[WARNING] The following patterns were never triggered in this artifact
exclusion filter:
o 'com.blah.shared.tilapia:*:zip:bundle'
o 'com.blah.shared.tilapia.doc:*:zip'
{noformat}
So the first exclude worked but the two last others didn't (I have the doc zip
and the bundle zip in the libs directory).
> 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
> Priority: Blocker
> Fix For: 2.2-beta-2
>
> 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