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.

cucumber-guice 2.0.0-SNAPSHOT is not found

See original GitHub issue

Summary

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)

  1. 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>
  1. Do a mvn clean -U install
  2. 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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
cdiminuttocommented, Aug 11, 2017

You were right, the problem was that the project was searching in the nexus repo only. Thanks for the help!

0reactions
lock[bot]commented, Oct 25, 2018

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven Could not resolve dependencies, artifacts could not be ...
I've tried downloading the newest version of maven, and included it in the eclipse helios, but still the same problem. The same error...
Read more >
Cucumber Tests in Spring Boot with Dependency Injection
This guide shows you how to configure Dependency Injection for your Cucumber tests in Spring Boot.
Read more >
cucumber-guice » 2.0.0 - Maven Repository
Home » io.cucumber » cucumber-guice » 2.0.0. logo. Cucumber JVM: Guice » 2.0.0. Cucumber JVM: Guice. License, MIT. Tags, guicedependency- ...
Read more >
Maven Archetype Catalog
... Jetty, Jackson, Guice and Jersey for Publishing JAX-RS-based Services on ... aem-spa-project-archetype 2.0.0 Maven Archetype for creating new AEM SPA ...
Read more >
Can't download dependency's source code - why? Follow
My colleague uploaded a new SNAPSHOT verison to SVN earliler ... super-long-artifact-name-1.0.3-SNAPSHOT.jar ... Sources not found for:
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