You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Roy van Rijn (Jira)" <ji...@apache.org> on 2020/07/29 13:46:00 UTC
[jira] [Commented] (MENFORCER-280) Enforcer dependency convergence
stumbles on selenium-java
[ https://issues.apache.org/jira/browse/MENFORCER-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167221#comment-17167221 ]
Roy van Rijn commented on MENFORCER-280:
----------------------------------------
Two things:
First: I'm able to reproduce this and can't yet explain where the *3.1.0* comes from. To reproduce use the following pom:
{noformat}
<dependencies>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.3.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-java</id>
<configuration>
<rules>
<dependencyConvergence />
</rules>
</configuration>
<goals>
<goal>enforce</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
{noformat}
This results in the error above which is odd... because the pom file points to 3.3.1, not 3.1.0.
As a quick fix I tried upgrading the dependency-tree version to something higher than 2.2, going to DependencyGraphBuilder, but this doesn't work because of issue [MSHARED-788].
I'll try to digg deeper and find why the dependency-tree finds a 3.1.0 version of selenium-java.
> Enforcer dependency convergence stumbles on selenium-java
> ---------------------------------------------------------
>
> Key: MENFORCER-280
> URL: https://issues.apache.org/jira/browse/MENFORCER-280
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Affects Versions: 3.0.0-M1
> Reporter: Axel Fontaine
> Priority: Major
>
> When running the dependency convergence check, we get this impossible result:
> {{Dependency convergence error for org.seleniumhq.selenium:selenium-java:3.3.1 paths to dependency are:
> +-com.mywebapp:0-SNAPSHOT
> +-org.seleniumhq.selenium:selenium-java:3.3.1
> and
> +-com.mywebapp:0-SNAPSHOT
> +-org.seleniumhq.selenium:selenium-java:3.3.1
> +-org.seleniumhq.selenium:selenium-java:3.1.0}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)