cucumber-guice 2.0.0-SNAPSHOT is not found
See original GitHub issueSummary
When trying to update to the 2.0.0-SNAPSHOT the code is failing to find the one for cucumber-guice.
The rest of the io.cucumber dependencies are being correctly downloaded.
This is the dependencies I’m currently using:
<dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-jvm</artifactId> <version>2.0.0-SNAPSHOT</version> <type>pom</type> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-junit</artifactId> <version>2.0.0-SNAPSHOT</version> <type>jar</type> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-java</artifactId> <version>2.0.0-SNAPSHOT</version> <type>jar</type> </dependency> <dependency> <groupId>io.cucumber</groupId> <artifactId>cucumber-guice</artifactId> <version>2.0.0-SNAPSHOT</version> <type>jar</type> </dependency>
I was able to manually find the cucumber-guice 2.0.0-SNAPSHOT in oss.sonatype, but for some reason it’s still failing to get it when doing a mvn clean -U install: https://oss.sonatype.org/content/repositories/snapshots/io/cucumber/cucumber-guice/2.0.0-SNAPSHOT/
This is the console error:
[projectRoot]>mvn clean -U install [INFO] ------------------------------------------------------------------------ [INFO] Building qa-fw-core 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/org/seleniumhq/selenium/selenium-api/maven-metadata.xml Downloaded: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/org/seleniumhq/selenium/selenium-api/maven-metadata.xml (3.0 kB at 1.5 kB/s) Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/org/seleniumhq/selenium/selenium-support/maven-metadata.xml Downloaded: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/org/seleniumhq/selenium/selenium-support/maven-metadata.xml (3.2 kB at 2.1 kB/s) Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-jvm/2.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-junit/2.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-core/2.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-java/2.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-guice/2.0.0-SNAPSHOT/maven-metadata.xml Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-guice/2.0.0-SNAPSHOT/cucumber-guice-2.0.0-SNAPSHOT.pom [WARNING] The POM for io.cucumber:cucumber-guice:jar:2.0.0-SNAPSHOT is missing, no dependency information available Downloading: http://internal-jenkins-build-server-1925901387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/io/cucumber/cucumber-guice/2.0.0-SNAPSHOT/cucumber-guice-2.0.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] qa-fw … SUCCESS [ 0.173 s] [INFO] qa-fw-core … FAILURE [ 14.518 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 14.786 s [INFO] Finished at: 2017-08-09T12:02:33-03:00 [INFO] Final Memory: 12M/206M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project qa-fw-core: Could not resolve dependencies for project com…qa:qa-fw-core:jar:1.0-SNAPSHOT: Could not find artifact io.cucumber:cucumber-guice:jar:2.0.0-SNAPSHOT in nexus (http://internal-jenkins-build-server-19259 01387.us-east-1.elb.amazonaws.com:8081/repository/maven-public/) -> [Help 1]
Expected Behavior
The cucumber-guice 2.0.0-SNAPSHOT should be found and downloaded, along with the rest of the io.cucumber dependencies.
Current Behavior
The cucumber-guice 2.0.0-SNAPSHOT is not found, but the rest of the io.cucumber dependencies are correctly downloaded.
Steps to Reproduce (for bugs)
- Add the following dependency to the pom:
<dependency>
<groupId>io.cucumber</groupId>
<artifactId>cucumber-guice</artifactId>
<version>2.0.0-SNAPSHOT</version>
<type>jar</type>
</dependency>
- Do a
mvn clean -U install
- Notice that the dependency couldn’t be found and the process will fail
Context & Motivation
I’m trying to migrate from cucumber-jvm version 1.2.5 to 2.0.0 to see if some of the execution bugs are fixed in that version: https://github.com/cucumber/cucumber-jvm/pull/1134 https://github.com/cucumber/cucumber-jvm/issues/1120
The projects are using Guice for DI, that’s why the interest in updating cucumber-guice too.
Your Environment
- Version used: 2.0.0-SNAPSHOT
- Operating System and version: Windows 7 Ultimate x64
- Maven version: 3.5.0
- JAVA version: 1.8.0_131
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
You were right, the problem was that the project was searching in the nexus repo only. Thanks for the help!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.