Skip to main content



      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 03:28 Go to next message
Eclipse UserFriend
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 13:26 Go to previous messageGo to next message
Eclipse UserFriend
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 00:10 Go to previous message
Eclipse UserFriend
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 13:26 Go to previous message
Eclipse UserFriend
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 00:10 Go to previous message
Eclipse UserFriend
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: Sat May 24 18:43:40 EDT 2025

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

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

Back to the top