question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Selenium dependency boundaries not working with Maven

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
TikhomirovSergeycommented, Sep 8, 2017

5.0.3 is coming ASAP.

1reaction
SrinivasanTargetcommented, Sep 7, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven project is not working after import - Stack Overflow
In Eclipse go to Project > Properties > Libraries > [Add Library] > TestNG > Finish. This might fix your problem. Share.
Read more >
Setting up a project in Eclipse with Maven and TestNG using ...
Maven is used to define the project structure, dependencies, build, and test-management. We can use Eclipse and Maven to build our Selenium WebDriver...
Read more >
Artifacts using selenium-java version 2.42.2 - Maven Repository
A BDD / Testing framework with pure Groovy DSL, running in a Spark cluster, advanced reporting and clearly define the boundary between BA...
Read more >
Legit but Useless: Maven Version Ranges Explained
For some dependencies it's just fine to pick one exact version –e.g. 1.23 – which works flawlessly. However, for some dependencies we'd like...
Read more >
Maven Dependency Management with Selenium - BrowserStack
Maven is widely used for dependency management in Java. Read step-by-step tutorial to run Maven Dependency using Selenium & also learn ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found