Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » IAM (Eclipse Integration for Apache Maven) » Are dependency exclusions honoured by IAM?
Are dependency exclusions honoured by IAM? [message #19300] Mon, 25 May 2009 07:28 Go to next message
BenH is currently offline BenHFriend
Messages: 39
Registered: July 2009
Member
Im expected that by using the exclusion below, it should prevent artefact
"selenium.server" from being pulled into the project dependencies
("selenium.server" has got problems in its POM, you see).

But it remains, and "Analyze Dependencies" says that its there due to
"org.openqa.selenium.client-drivers", ie this dependency.

Is exclusion is not working, or not implemented?

<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>1.0-beta-1</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium.server</artifactId>
</exclusion>
</exclusions>
</dependency>

-Ben
Re: Are dependency exclusions honoured by IAM? [message #19391 is a reply to message #19300] Mon, 25 May 2009 17:26 Go to previous messageGo to next message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Ben,

BenH wrote:

> Im expected that by using the exclusion below, it should prevent artefact
> "selenium.server" from being pulled into the project dependencies
> ("selenium.server" has got problems in its POM, you see).

> But it remains, and "Analyze Dependencies" says that its there due to
> "org.openqa.selenium.client-drivers", ie this dependency.

> Is exclusion is not working, or not implemented?

Eclipse IAM delegates on the Maven Embedder to calculate dependencies (and
exclusions).

By some reason, the version we use is not properly handling your exclusion.

A workaround is to add the exclusion in the dependency management section
of the pom (or a parent pom). Like this:

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>1.0-beta-1</version>
<exclusions>
<exclusion>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>

You can then remove the <exclusions> from the <dependency>.

Hope this helps!

> <dependency>
> <groupId>org.openqa.selenium.client-drivers</groupId>
> <artifactId>selenium-java-client-driver</artifactId>
> <version>1.0-beta-1</version>
> <scope>test</scope>
> <exclusions>
> <exclusion>
> <groupId>org.openqa.selenium.server</groupId>
> <artifactId>selenium.server</artifactId>
> </exclusion>
> </exclusions>
> </dependency>

> -Ben
--
Abel Muiño
Re: Are dependency exclusions honoured by IAM? [message #19437 is a reply to message #19300] Tue, 26 May 2009 04:10 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
maybe you are getting a previous version of selenium server that was
under another groupId org.seleniumhq.... IIRC
Maven wont exclude it if group and artifact dont match


On 5/25/09 12:28 AM, BenH wrote:
> Im expected that by using the exclusion below, it should prevent
> artefact "selenium.server" from being pulled into the project
> dependencies ("selenium.server" has got problems in its POM, you see).
> But it remains, and "Analyze Dependencies" says that its there due to
> "org.openqa.selenium.client-drivers", ie this dependency.
> Is exclusion is not working, or not implemented?
>
> <dependency>
> <groupId>org.openqa.selenium.client-drivers</groupId>
> <artifactId>selenium-java-client-driver</artifactId>
> <version>1.0-beta-1</version>
> <scope>test</scope>
> <exclusions> <exclusion>
> <groupId>org.openqa.selenium.server</groupId>
> <artifactId>selenium.server</artifactId> </exclusion>
> </exclusions> </dependency>
>
> -Ben
>
Re: Are dependency exclusions honoured by IAM? [message #569339 is a reply to message #19300] Mon, 25 May 2009 17:26 Go to previous message
Abel Mui is currently offline Abel MuiFriend
Messages: 247
Registered: July 2009
Senior Member
Hello Ben,

BenH wrote:

> Im expected that by using the exclusion below, it should prevent artefact
> "selenium.server" from being pulled into the project dependencies
> ("selenium.server" has got problems in its POM, you see).

> But it remains, and "Analyze Dependencies" says that its there due to
> "org.openqa.selenium.client-drivers", ie this dependency.

> Is exclusion is not working, or not implemented?

Eclipse IAM delegates on the Maven Embedder to calculate dependencies (and
exclusions).

By some reason, the version we use is not properly handling your exclusion.

A workaround is to add the exclusion in the dependency management section
of the pom (or a parent pom). Like this:

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.openqa.selenium.client-drivers</groupId>
<artifactId>selenium-java-client-driver</artifactId>
<version>1.0-beta-1</version>
<exclusions>
<exclusion>
<groupId>org.openqa.selenium.server</groupId>
<artifactId>selenium-server</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</dependencyManagement>

You can then remove the <exclusions> from the <dependency>.

Hope this helps!

> <dependency>
> <groupId>org.openqa.selenium.client-drivers</groupId>
> <artifactId>selenium-java-client-driver</artifactId>
> <version>1.0-beta-1</version>
> <scope>test</scope>
> <exclusions>
> <exclusion>
> <groupId>org.openqa.selenium.server</groupId>
> <artifactId>selenium.server</artifactId>
> </exclusion>
> </exclusions>
> </dependency>

> -Ben
--
Abel Muiño
Re: Are dependency exclusions honoured by IAM? [message #569361 is a reply to message #19300] Tue, 26 May 2009 04:10 Go to previous message
Carlos Sanchez is currently offline Carlos SanchezFriend
Messages: 114
Registered: July 2009
Senior Member
maybe you are getting a previous version of selenium server that was
under another groupId org.seleniumhq.... IIRC
Maven wont exclude it if group and artifact dont match


On 5/25/09 12:28 AM, BenH wrote:
> Im expected that by using the exclusion below, it should prevent
> artefact "selenium.server" from being pulled into the project
> dependencies ("selenium.server" has got problems in its POM, you see).
> But it remains, and "Analyze Dependencies" says that its there due to
> "org.openqa.selenium.client-drivers", ie this dependency.
> Is exclusion is not working, or not implemented?
>
> <dependency>
> <groupId>org.openqa.selenium.client-drivers</groupId>
> <artifactId>selenium-java-client-driver</artifactId>
> <version>1.0-beta-1</version>
> <scope>test</scope>
> <exclusions> <exclusion>
> <groupId>org.openqa.selenium.server</groupId>
> <artifactId>selenium.server</artifactId> </exclusion>
> </exclusions> </dependency>
>
> -Ben
>
Previous Topic:Are dependency exclusions honoured by IAM?
Next Topic:Installation Failure
Goto Forum:
  


Current Time: Thu Sep 20 23:59:18 GMT 2018

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

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

Back to the top