Unresolved dependency: org.scala-sbt#sbt;0.13: not found when running sbt 0.13?

前端 未结 4 1096
醉话见心
醉话见心 2021-02-07 11:40

I have a Scala project consisting of a few ones. I decided to start using sbt 0.13. Here is ~/sbt/repositories:

[repositories]
  local
         


        
相关标签:
4条回答
  • 2021-02-07 12:16

    It looks like you are experiencing version mismatch issue.

    If you have modified your project/build.properties to include sbt.version=0.13.0, it could mean that you are using wrong launcher.

    Try running

    sbt sbt-version
    

    and check if the version matches your sbt version in project/build.properties.

    0 讨论(0)
  • 2021-02-07 12:18

    I had the same issue when first installing openjdk-9-jdk and then openjdk-8-jdk on Ubuntu.

    I ended up uninstalling both, rm -rfing /etc/ssl/certs/java and /etc/java-*, reinstalling openjdk-8-jdk and running sudo update-ca-certificates -f, which fixed it for me.

    0 讨论(0)
  • 2021-02-07 12:21

    Two steps only

    1. Update the certificates using

      $ update-ca-certificates -f
      
    2. Enter

      $ sbt  
      

    It will fetch the requisite files, if connected to internet.

    0 讨论(0)
  • 2021-02-07 12:23

    Try using 0.13.1.

    Put the following in project/build.properties:

    sbt.version=0.13.1
    

    You will probably need the 0.13 sbt launcher as well. See sbt Getting-Started - Setup

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