Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » exclude a transitive (maven) dependency
exclude a transitive (maven) dependency [message #505871] Tue, 05 January 2010 12:17 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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
Re: exclude a transitive (maven) dependency [message #506503 is a reply to message #506192] Thu, 07 January 2010 18:26 Go to previous message
Eclipse UserFriend
Originally posted by: pajai.extrabright.com

Hi Thomas,

Here is the opened bugzilla issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=299067

Cheers,
Patrick
Previous Topic:qualifier replacement "generator:lastModified" does not take externals into account
Next Topic:Version qualifier not replaced with url.catalog and local readers
Goto Forum:
  


Current Time: Sat Apr 20 00:56:44 GMT 2024

Powered by FUDForum. Page generated in 0.03228 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top