Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not download scala-library-2.11

Tags:

java

maven

scala

When I use sbt the error message appears as below:

==== public: tried
[warn]   https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11/scala-library-2.11.pom
[warn] ==== bintray-spark-jobserver-maven: tried
[warn]   https://dl.bintray.com/spark-jobserver/maven/org/scala-lang/scala-library/2.11/scala-library-2.11.pom
[warn] ==== Typesafe Repo: tried
[warn]   http://repo.typesafe.com/typesafe/releases/org/scala-lang/scala-library/2.11/scala-library-2.11.pom

It seems the "https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.11/scala-library-2.11.pom" could not be found, and I check the page also does not exist.

It also causes the scala-library-2.11 jar to not be found.

On the other hand, when I check https://repo1.maven.org/maven2/org/scala-lang/scala-library/**2.11.0**/scala-library-**2.11.0**.pom this url exists.

How can I resolve this?

like image 282
Frank Yao Avatar asked Oct 21 '25 20:10

Frank Yao


1 Answers

I had the same exact problem, I eventually figured that there isn't a 2.11 version of scala, and that it isn't equivalent to the 2.11.0 version, check all scala versions available in this link

so the steps to fix this are:

  1. Change the version into another valid version (2.11.0 for example)
  2. delete your ~/.ivy2 directory just to make sure you're starting clean and avoid binary conflicts(you can skip this step)
  3. re-build your project

and it should work perfectly!

like image 169
Rama Salahat Avatar answered Oct 23 '25 10:10

Rama Salahat



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!