IntelliJ 在构建时抛出 sbt 错误
IntelliJ throws sbt errors while doing the build
我在从 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[=10=].13.17\ivys\ivy.xml
-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:
C:\Users\omega\.ivy2\local\org.scala-sbt\sbt[=10=].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
解决方法:改用0.13.18
版本的SBT。那还在
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.
我在从 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[=10=].13.17\ivys\ivy.xml
-- artifact org.scala-sbt#sbt;0.13.17!sbt.jar:
C:\Users\omega\.ivy2\local\org.scala-sbt\sbt[=10=].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
解决方法:改用
0.13.18
版本的SBT。那还在 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.