Why does sbt report missing libraries for Scala 2.10.2 (since Aug, 1th)?

前端 未结 1 1044
悲&欢浪女
悲&欢浪女 2021-01-12 18:10

I\'ve got a number of Play 2.2.x apps that have been building without problem for months. However, starting on 1 Aug 2014, I started getting the following warnings and error

相关标签:
1条回答
  • 2021-01-12 18:45

    I've just found two places where the issue was reported and solved differently.

    Change resolvers to include Sonatype Releases

    It's described in SI-8772 Builds relying on Scala 2.10.2 artifact in Maven are failing and the solution is to add the following to your build:

    resolvers += Resolver.sonatypeRepo("releases")
    

    Manually downloading the required files

    The missing Scala 2.10.2 libraries issue was also reported in Apache Spark users mailing list and the solution was to download the required files manually as follows:

    $ cd ~/.ivy2/cache/org.scala-lang/
    $ mkdir -p scala-library && cd scala-library
    $ wget https://raw.githubusercontent.com/peterklipfel/scala_koans/master/ivyrepo/cache/org.scala-lang/scala-library/ivy-2.10.2.xml
    $ wget https://raw.githubusercontent.com/peterklipfel/scala_koans/master/ivyrepo/cache/org.scala-lang/scala-library/ivydata-2.10.2.properties
    $ mkdir -p jars && cd jars
    $ wget https://github.com/peterklipfel/scala_koans/raw/master/ivyrepo/cache/org.scala-lang/scala-library/jars/scala-library-2.10.2.jar
    

    It boils down to downloading the missing files from another repository to your Ivy2 local cache. Do the same for scala-compiler and you should be all fine.

    0 讨论(0)
提交回复
热议问题