exclude a transitive (maven) dependency [message #505871] |
Tue, 05 January 2010 12:17 |
Eclipse User |
|
|
|
Originally posted by: pajai.extrabright.com
Hi everybody,
When specifying a maven dependency in a pom.xml, it is possible to
exclude certain transitive dependencies using the following syntax:
<dependency>
<groupId>sample.group</groupId>
<artifactId>sample-artifactB</artifactId>
<version>1</version>
<exclusions>
<exclusion>
<groupId>sample.group</groupId>
<artifactId>sample-artifactAB</artifactId>
</exclusion>
</exclusions>
</dependency>
(Meaning: sample-artifactB has a transitive dependency
sample-artifactAB, that I want maven to ignore).
It seems that Buckminster does not take into account that exclusion
statement, and tries to fetch sample-artifactAB anyway. Is it the case?
Is there another way, so that I can specify (for instance in a cspex) to
exclude transitive dependencies of some kind?
Thanks in advance.
Cheers,
Patrick
|
|
|
Re: exclude a transitive (maven) dependency [message #506192 is a reply to message #505871] |
Wed, 06 January 2010 09:02 |
|
Hi Patrick,
You can add a CQUERY advisor node that matches the 'sample-artifactAB' and specify that any such
request should be skipped.
Buckminster does not currently honor the exclusions. I think it should so can you please add a
bugzilla for this?
Thanks,
Thomas Hallgren
Patrick J. wrote:
> Hi everybody,
>
> When specifying a maven dependency in a pom.xml, it is possible to
> exclude certain transitive dependencies using the following syntax:
>
> <dependency>
> <groupId>sample.group</groupId>
> <artifactId>sample-artifactB</artifactId>
> <version>1</version>
> <exclusions>
> <exclusion>
> <groupId>sample.group</groupId>
> <artifactId>sample-artifactAB</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
>
> (Meaning: sample-artifactB has a transitive dependency
> sample-artifactAB, that I want maven to ignore).
>
> It seems that Buckminster does not take into account that exclusion
> statement, and tries to fetch sample-artifactAB anyway. Is it the case?
>
> Is there another way, so that I can specify (for instance in a cspex) to
> exclude transitive dependencies of some kind?
>
> Thanks in advance.
> Cheers,
>
> Patrick
|
|
|
|
Powered by
FUDForum. Page generated in 0.04019 seconds