Skip to content

Selenium dependency boundaries not working with Maven #718

Closed

Description

@Hi-Fi

Description

While trying to create jar with dependencies with Selenium2library-java (https://github.com/Hi-Fi/robotframework-selenium2library-java/tree/Selenium3.5.2) with maven-assembly-plugin:3.1.0, error is thrown because of identical boundaries in Selenium version.

Environment

  • io.appium:java-client:jar:5.0.1
  • Microsoft Windows [Version 10.0.15063]
  • Maven version: 3.5.0
  • Java version: 1.8.0_144, vendor: Oracle Corporation

Details

Error message from Maven:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.0:single (make-assembly) on project robotframework-selenium2library-java: Failed to create assembly: Unable to resolve dependencies for assembly 'jar-with-dependencies': Failed to resolve dependencies for assembly: Unable to get dependency information for io.appium:java-client:jar:5.0.1: Invalid version for dependency org.seleniumhq.selenium:selenium-java:jar: Range cannot have identical boundaries: [3.5.2,3.5.2]
[ERROR]   io.appium:java-client:jar:5.0.1

Way To Reproduce Issue

Can be seen by executing mvn clean verify with code from https://github.com/Hi-Fi/robotframework-selenium2library-java/tree/Selenium3.5.2

Activity

  1. added a commit that references this issue on Sep 3, 2017
  2. mykola-mokhnach commented on Sep 3, 2017

    @mykola-mokhnach
    Contributor
  3. TikhomirovSergey commented on Sep 3, 2017

    @TikhomirovSergey
    Contributor

    @Hi-Fi @mykola-mokhnach Yes. I am taking this issue. As we found the rootcause of many issues (#714) I will return the version number to its normal form (3.5.3 or another higher number) in 5.0.3

  4. mykola-mokhnach commented on Sep 4, 2017

    @mykola-mokhnach
    Contributor

    @TikhomirovSergey

    This is what I have found on this topic so far:
    http://gradle.1045684.n5.nabble.com/Translating-Ivy-dep-version-syntax-to-Maven-in-POM-generation-td5712755.html

    Probably, we can use https://github.com/nebula-plugins/nebula-publishing-plugin, which can properly publish version ranges into Maven pom files.

  5. TikhomirovSergey commented on Sep 4, 2017

    @TikhomirovSergey
    Contributor

    @mykola-mokhnach Ok. Will try the nebula plugin. Thank you.

  6. realnikunj commented on Sep 7, 2017

    @realnikunj

    I am facing this same issue with java-client version 5.0.2

    Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.0:single (make-assembly) on project mt-ui-utils: Failed to create assembly: Unable to resolve dependencies for assembly 'jar-with-dependencies': Failed to resolve dependencies for assembly: Unable to get dependency information for io.appium:java-client:jar:5.0.2: Invalid version for dependency org.seleniumhq.selenium:selenium-java:jar: Range cannot have identical boundaries: [3.5.3,3.5.3]
    io.appium:java-client:jar:5.0.2

  7. SrinivasanTarget commented on Sep 7, 2017

    @SrinivasanTarget
    Member

    @realnikunj We are working on fix. Will push a release sooner.

  8. added a commit that references this issue on Sep 8, 2017
  9. TikhomirovSergey commented on Sep 8, 2017

    @TikhomirovSergey
    Contributor

    5.0.3 is coming ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions