Are dependency exclusions honoured by IAM? [message #19300] |
Mon, 25 May 2009 03:28  |
Eclipse User |
|
|
|
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 #19437 is a reply to message #19300] |
Tue, 26 May 2009 00:10  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02610 seconds