gpt4 book ai didi

scala - 在构建SBT项目IntelliJ中,原点位置必须是绝对错误

转载 作者:行者123 更新时间:2023-12-04 03:00:28 25 4
gpt4 key购买 nike

我正在尝试使用IntelliJ构建简单的hello world SBT-Scala项目。

安装scala / SBT插件后,当我第一次尝试创建项目时,出现以下错误:

Error:Error while importing SBT project:<br/>...<br/><pre>[info] Resolving org.scala-lang#scala-reflect;2.11.8 ...
[info] Resolving org.scala-lang#scala-reflect;2.11.8 ...
[info] Resolving org.scala-lang.modules#scala-xml_2.11;1.0.4 ...
[info] Resolving org.scala-lang.modules#scala-parser-combinators_2.11;1.0.4 ...
[info] Resolving jline#jline;2.12.1 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.scala-lang#scala-reflect;2.11.8: org.scala-lang#scala-reflect;2.11.8!scala-reflect.pom(pom.original) origin location must be absolute: file:/root/.m2/repository/org/scala-lang/scala-reflect/2.11.8/scala-reflect-2.11.8.pom
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Unresolved dependencies path:
[warn] org.scala-lang:scala-reflect:2.11.8
[warn] +- org.scala-lang:scala-compiler:2.11.8
[warn] +- default:supersimplerootscalasbt3_2.11:1.0
[trace] Stack trace suppressed: run 'last *:ssExtractProject' for the full output.
[trace] Stack trace suppressed: run 'last *:update' for the full output.
[error] (*:ssExtractProject) sbt.ResolveException: unresolved dependency: org.scala-lang#scala-reflect;2.11.8: org.scala-lang#scala-reflect;2.11.8!scala-reflect.pom(pom.original) origin location must be absolute: file:/root/.m2/repository/org/scala-lang/scala-reflect/2.11.8/scala-reflect-2.11.8.pom
[error] (*:update) sbt.ResolveException: unresolved dependency: org.scala-lang#scala-reflect;2.11.8: org.scala-lang#scala-reflect;2.11.8!scala-reflect.pom(pom.original) origin location must be absolute: file:/root/.m2/repository/org/scala-lang/scala-reflect/2.11.8/scala-reflect-2.11.8.pom
[error] Total time: 3 s, completed 22 May, 2017 4:42:05 PM</pre><br/>See complete log in <a href="file:/root/.IdeaIC2017.1/system/log/sbt.last.log">file:/root/.IdeaIC2017.1/system/log/sbt.last.log</a>


任何想法如何解决原点位置一定是绝对错误吗?

[请注意,与错误指定不同,我能够找到文件scala-reflect-2.11.8.pom:file:/root/.m2/repository/org/scala-lang/scala-reflect/2.11.8/scala -reflect-2.11.8.pom]

我的build.sbt文件:

name := "SuperSimpleRootScalaSBT4"

version := "1.0"

scalaVersion := "2.11.8"


我的sbt版本是0.13.15。

最佳答案

对我而言,删除〜/ .ivy2帮助了

关于scala - 在构建SBT项目IntelliJ中,原点位置必须是绝对错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44111648/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com