You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andrew Madu <an...@gmail.com> on 2008/06/22 19:47:41 UTC
How do I exclude ALL dependencies from a dependency?
Hi,
I have a requirement to specify a dependency in my pom whilst excluding
all of it's associated dependencies. The <exclusion> tag enables me to
specify dependencies I do not need, but only one at a time! How do I do
a global exclusion of a dependency?
--
Regards
Andrew
Re: How do I exclude ALL dependencies from a dependency?
Posted by Andrew Madu <an...@gmail.com>.
Hi Grzegorz,
>
> If the included artifact has some dependencies it probably means it
> really needs them for proper running.
Correct. Until that is, you encounter a number of classpath exceptions
due to the fact that the sub-dependencies a dependency requires already
exist in the classpath. Under these circumstances I see no benefit in
having to exclude the unrequired dependencies individually.
--
Regards
Andrew
Mob - 07821 437 246
Landline - 01158 718 732
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: How do I exclude ALL dependencies from a dependency?
Posted by Grzegorz Kossakowski <gr...@tuffmail.com>.
Andrew Madu pisze:
> Hi,
> I have a requirement to specify a dependency in my pom whilst excluding
> all of it's associated dependencies. The <exclusion> tag enables me to
> specify dependencies I do not need, but only one at a time! How do I do
> a global exclusion of a dependency?
Hi Adrew,
AFAIK there is no such option but still for a good reason. Such global exclusions are usually
dangerous and problematic in a long term.
If the included artifact has some dependencies it probably means it really needs them for proper
running. If you want to exclude all of its dependencies it's a good sign of something wrong with
your whole approach. Isn't it?
PS. This question belongs more to Maven's user list.
--
Grzegorz Kossakowski
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org