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.

Unresolved dependency commons

See original GitHub issue

When trying to build a Spark plugin using this plugin I receive the following error:

[warn]  Note: Unresolved dependencies path:
[warn]      commons-codec:commons-codec:1.8
[warn]        +- org.apache.directory.studio:org.apache.commons.codec:1.8
[warn]        +- org.spark-packages:sbt-spark-package:0.2.1 (sbtVersion=0.13, scalaVersion=2.10) (/Users/rvesse/Documents/Work/Code/spark-rdf/project/plugins.sbt#L5-6)
[warn]        +- default:spark-rdf-build:0.1-SNAPSHOT (sbtVersion=0.13, scalaVersion=2.10)
sbt.ResolveException: unresolved dependency: commons-codec#commons-codec;1.8: org.apache#apache;13!apache.pom(pom.original) origin location must be absolute: file:/Users/rvesse/.m2/repository/org/apache/apache/13/apache-13.pom

My build.sbt is a simple build file generated by the Databricks spark-package tool and the project/plugins.sbt simply has the definition for this plugin as described in the ReadMe

Any ideas on how to solve this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

44reactions
rvessecommented, Jul 27, 2017

Apparently this was some sort of corrupted Ivy 2 cache issue, deleting the ~/.ivy2/ directory entirely and relaunching SBT resolved the problem

12reactions
gurugv-zzcommented, Jul 27, 2017

Or just the specific jars. For eg : for this error : org.apache.avro#avro;1.7.6: org.apache.avro#avro;1.7.6!avro.pom(pom.original) origin location must be absolute: file:/Users/guruprasad.gv/.m2/repository/org/apache/avro/avro/1.7.6/avro-1.7.6.pom

just delete : rm -rf ~/.ivy2/cache/org.apache.avro rm -rf ~/.ivy2/jars/org.apache.avro_avro-1.7.6.jar

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix this "sbt.ResolveException: unresolved dependency ...
Just deleted the commons-logging from local ~/.ivy2/cache , and re-run it. PS: I don't know why it can fix it :(.
Read more >
sbt.ResolveException: unresolved dependency: commons ...
Sometimes this kind of error happens with corrupt files/configs in ~/.ivy2 or in the public repo. Deleting ~/.ivy2 folder might help. If that ......
Read more >
Re: build fails due to unresolved dependency - Google Groups
time, its with a missing JDK library dependency in IndexManager.java. I've attached the full -X debug log from the 'mvn clean install' run....
Read more >
Lang – Dependency Information - Apache Commons
Dependency Information · Apache Maven · Apache Buildr · Apache Ivy · Groovy Grape · Gradle/Grails · Scala SBT · Leiningen.
Read more >
1717908 – Package istack-commons cannot be installed due ...
Description of problem: istack-commons cannot be installed due to unresolved dependencies. The package is from CRB repository. package: ...
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