Sbt new RuntimeException

I got lost trying to start with an example of a scala game, at startup sbt new scala/hello-world.g8or even the sbt newprogram crashes with the following error. Any ideas what might be wrong? Thanks in advance!

(In fact, I am launching sbt -java-home /usr/lib/jvm/jdk-8-oracle-x64 newsince my system uses an older version of jdk by defualt)

[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.antlr#ST4;4.0.8: org.sonatype.oss#oss-parent;9!oss-parent.pom(pom.original) origin location must be absolute: file:/home/michal/.m2/repository/org/sonatype/oss/oss-parent/9/oss-parent-9.pom
[warn]  :: com.googlecode.javaewah#JavaEWAH;0.7.9: org.sonatype.oss#oss-parent;5!oss-parent.pom(pom.original) origin location must be absolute: file:/home/michal/.m2/repository/org/sonatype/oss/oss-parent/5/oss-parent-5.pom
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] java.lang.RuntimeException: Retrieval of org.scala-sbt.sbt-giter8-resolver:sbt-giter8-resolver:0.1.3 failed.
[error]     at scala.sys.package$.error(package.scala:27)
[error]     at sbt.TemplateCommandUtil$.classpathForInfo(TemplateCommand.scala:119)
[error]     at sbt.TemplateCommandUtil$.infoLoader(TemplateCommand.scala:81)
[error]     at sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala:48)
[error]     at sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateCommand.scala:47)
[error]     at sbt.TemplateCommandUtil$$$Lambda$1762/658781536.apply(Unknown Source)
...
[error]     at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error]     at xsbt.boot.Boot$.main(Boot.scala:17)
[error]     at xsbt.boot.Boot.main(Boot.scala)
[error] Retrieval of org.scala-sbt.sbt-giter8-resolver:sbt-giter8-resolver:0.1.3 failed.
[error] Use 'last' for the full log.
+4
source share
3 answers

I also had this problem. I fixed it by blowing off the ~ / .ivy2 directory

+1
source

I also had this problem, I had an obsolete ~ / .sbt / repositories file.

Or:

0

Create a new user in order to have a clean configuration, make sure that he is available for this JDK and SBT user using "-version". I completed it and everything worked perfectly. Sometimes you have installed or configured for your user that the programs conflict with each other. Postscript I do not recommend using openjdk in this case.

0
source

Source: https://habr.com/ru/post/1684467/


All Articles