[
http://jira.codehaus.org/browse/MASSEMBLY-529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=243130#action_243130
]
Oleg Kalnichevski commented on MASSEMBLY-529:
---------------------------------------------
You can refer to the following project to reproduce the issue
Apache HttpClient project [1] has a caching module [2] which has two optional
dependencies (ehcache and memcached). There dependencies are not mandatory and
are intended for redistribution with HttpClient.
I was unable to find a straightforward way of excluding those dependencies
other than than explicitly excluding each artifact from the dependency set. I
would even go as far as suggesting than optional dependencies should not get
pulled in per default.
Oleg
[1] http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/
[2]
http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient-cache/
> Provide a way to exclude optional dependencies of a module from the assembly
> ----------------------------------------------------------------------------
>
> Key: MASSEMBLY-529
> URL: http://jira.codehaus.org/browse/MASSEMBLY-529
> Project: Maven 2.x Assembly Plugin
> Issue Type: Improvement
> Affects Versions: 2.2-beta-5, 2.2
> Reporter: Oleg Kalnichevski
>
> Presently optional dependencies of modules in a module set always get pulled
> in and there appears to be no way to exclude all optional dependencies other
> than explicitly excluding them one by on
--
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