【问题标题】:IntelliJ throws sbt errors while doing the buildIntelliJ 在构建时抛出 sbt 错误
【发布时间】:2021-06-28 16:18:35
【问题描述】:

从 GIT 导入 Spark 项目时遇到此错误

我不知道该怎么做

Error while importing sbt project:

 Getting org.scala-sbt sbt 0.13.17  (this may take some time)...

:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.17

==== local: tried

C:\Users\omega\.ivy2\local\org.scala-sbt\sbt\0.13.17\ivys\ivy.xml

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

C:\Users\omega\.ivy2\local\org.scala-sbt\sbt\0.13.17\jars\sbt.jar

==== my-ivy-proxy-releases: tried

https://nexus.rxcorp.com:8081/nexus/repository/ivy-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://nexus.rxcorp.com:8081/nexus/repository/ivy-releases/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== my-maven-proxy-releases: tried

https://nexus.rxcorp.com:8081/nexus/repository/mvn-repositories/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://nexus.rxcorp.com:8081/nexus/repository/mvn-repositories/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== my-sbt-ivy-snapshots3: tried

https://nexus.rxcorp.com:8081/nexus/repository/snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://nexus.rxcorp.com:8081/nexus/repository/snapshots/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar
 ==== my-sbt-ivy-snapshots2: tried

 https://nexus.rxcorp.com:8081/nexus/repository/public/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

 -- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

https://nexus.rxcorp.com:8081/nexus/repository/public/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

==== typesafe-releases: tried

https://nexus.rxcorp.com:8081/nexus/repository/typesafe/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

 https://nexus.rxcorp.com:8081/nexus/repository/typesafe/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

 ==== typesafe-ivy-releases/: tried

  https://nexus.rxcorp.com:8081/nexus/repository/Typesafe-Ivy-Releases/org.scala- 
 sbt/sbt/0.13.17/ivys/ivy.xml

 ==== Maven Central: tried

 https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.pom

 -- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:

 https://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.17/sbt-0.13.17.jar

  ::::::::::::::::::::::::::::::::::::::::::::::

   ::          UNRESOLVED DEPENDENCIES         ::

  ::::::::::::::::::::::::::::::::::::::::::::::

  :: org.scala-sbt#sbt;0.13.17: not found

 ::::::::::::::::::::::::::::::::::::::::::::::



   :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
    Error during sbt execution: Error retrieving required libraries
       Error: Could not retrieve sbt 0.13.17

【问题讨论】:

    标签: apache-spark sbt


    【解决方案1】:
    • 解决方案:改用 SBT 的 0.13.18 版本。那还在上 repository,而版本0.13.17已被删除。

      只需将project/build.properties: 中的版本更改为

      sbt.version=0.13.18。正如提到的in that other post你也 需要将 sbt 启动器更新到版本0.13.18。

    • 推荐的解决方案:尝试将 sbt 版本更改为1.X.X。版本 不再支持0.13.X(请参阅in scala-sbt docs)。笔记 SBT 1.X.X 引入了重大更改,因此您需要 关注their guide for migrating from 0.13.X。

    【讨论】:

      猜你喜欢
      • 2014-03-11
      • 2017-10-15
      • 2016-12-23
      • 1970-01-01
      • 2018-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多