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.

Unable to resolve dependencies with no version specified

See original GitHub issue

Simple to reproduce:

[coursier] ./coursier fetch  "net.openhft":"chronicle-map":"2.4.12"  

Results in this:

  Dependencies:issing file(s) / 14
net.openhft:chronicle-map:2.4.12:default(compile)
https://repo1.maven.org/maven2/org/slf4j/slf4j-api/1.7.6/slf4j-api-1.7.6.pom
  100.0% [##########] 2.6 KiB (14.1 KiB / s)
https://repo1.maven.org/maven2/org/slf4j/slf4j-parent/1.7.6/slf4j-parent-1.7.6.pom
  100.0% [##########] 11.6 KiB (401.0 KiB / s)

Error:
  org.ops4j.pax.url:pax-url-aether::
    Not found: https://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-aether//pax-url-aether-.pom
  org.ow2.asm:asm::
    Not found: https://repo1.maven.org/maven2/org/ow2/asm/asm//asm-.pom
  org.xerial.snappy:snappy-java::
    Not found: https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java//snappy-java-.pom
  org.codehaus.jettison:jettison::
    Not found: https://repo1.maven.org/maven2/org/codehaus/jettison/jettison//jettison-.pom
  com.intellij:annotations::
    Not found: https://repo1.maven.org/maven2/com/intellij/annotations//annotations-.pom
  com.sun.java:tools::
    Not found: https://repo1.maven.org/maven2/com/sun/java/tools//tools-.pom
  com.thoughtworks.xstream:xstream::
    Not found: https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream//xstream-.pom

The POM file at http://central.maven.org/maven2/net/openhft/chronicle-map/2.4.12/chronicle-map-2.4.12.pom has a bunch of dependencies without a version specified, like this:

<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
</dependency>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
alexarchambaultcommented, Oct 29, 2018

Although mixed along less relevant errors, the checksum error is now in the output:

$ ./coursier fetch net.openhft:chronicle-map:2.4.12
https://repo1.maven.org/maven2/net/openhft/third-party-bom/3.4.20/third-party-bom-3.4.20.pom
  100,0% [##########] 15,7 KiB (24,9 KiB / s)
https://repo1.maven.org/maven2/net/openhft/third-party-bom/3.4.20/third-party-bom-3.4.20.pom
  100,0% [##########] 15,7 KiB (365,8 KiB / s)

Error:
  org.ow2.asm:asm:
    No fallback URL found
    not found: ~/.ivy2/local/org.ow2.asm/asm/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/ow2/asm/asm//asm-.pom
  org.ops4j.pax.url:pax-url-aether:
    No fallback URL found
    not found: ~/.ivy2/local/org.ops4j.pax.url/pax-url-aether/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/ops4j/pax/url/pax-url-aether//pax-url-aether-.pom
  com.sun.java:tools:
    No fallback URL found
    not found: ~/.ivy2/local/com.sun.java/tools/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/com/sun/java/tools//tools-.pom
  com.thoughtworks.xstream:xstream:
    No fallback URL found
    not found: ~/.ivy2/local/com.thoughtworks.xstream/xstream/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/com/thoughtworks/xstream/xstream//xstream-.pom
  net.openhft:third-party-bom:3.4.20
    No fallback URL found
    not found: ~/.ivy2/local/net.openhft/third-party-bom/3.4.20/ivys/ivy.xml
    wrong checksum: ~/.coursier/cache/v1/https/repo1.maven.org/maven2/net/openhft/third-party-bom/3.4.20/third-party-bom-3.4.20.pom
  org.xerial.snappy:snappy-java:
    No fallback URL found
    not found: ~/.ivy2/local/org.xerial.snappy/snappy-java/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/xerial/snappy/snappy-java//snappy-java-.pom
  org.slf4j:slf4j-api:
    No fallback URL found
    not found: ~/.ivy2/local/org.slf4j/slf4j-api/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/slf4j/slf4j-api//slf4j-api-.pom
  com.intellij:annotations:
    No fallback URL found
    not found: ~/.ivy2/local/com.intellij/annotations/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/com/intellij/annotations//annotations-.pom
  org.codehaus.jettison:jettison:
    No fallback URL found
    not found: ~/.ivy2/local/org.codehaus.jettison/jettison/ivys/ivy.xml
    not found: https://repo1.maven.org/maven2/org/codehaus/jettison/jettison//jettison-.pom
0reactions
easelcommented, Feb 22, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why maven sometimes can't resolve dependencies?
If we use BOM, we don't need to specify version numbers each time we add dependencies under same parent POM. For example:
Read more >
Problem: Unable to resolve dependencies of NuGet packages
Delete all packages from the packages folder, located in your project's folder. Reinstall Telerik.Sitefinity.All to the desired version. Rebuild the project.
Read more >
Could not resolve dependencies - MuleSoft Help Center
Could not resolve dependencies. <p>I am trying to learn Mulesoft. I have no Java experience, so this might seem like a basic question/solution....
Read more >
NuGet Package Dependency Resolution - Microsoft Learn
NuGet generates an error when an exact package version is not available ... A floating dependency version is specified with the * character....
Read more >
Downgrading versions and excluding dependencies
Overriding transitive dependency versions. Gradle resolves any dependency version conflicts by selecting the latest version found in the dependency graph. Some ...
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