在使用sbt-assembly构建我的jar时遇到问题。我已经浏览了几乎所有可用的帖子,但是它无助于解决我的问题。
下面是我的build.sbt-
name := "test"
version := "0.1"
scalaVersion := "2.11.8"
sbtVersion := "1.3.6"
assembly.sbt-
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.14.6")
plugins.sbt-
resolvers += Resolver.url("bintray-sbt-plugins", url("http://dl.bintray.com/sbt/sbt-plugin-releases"))(Resolver.ivyStylePatterns)
错误:
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.eed3si9n#sbt-assembly;0.14.6: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] com.eed3si9n:sbt-assembly:0.14.6 (scalaVersion=2.12, sbtVersion=1.0)
[warn]
[warn] Note: Unresolved dependencies path:
[warn] com.eed3si9n:sbt-assembly:0.14.6 (scalaVersion=2.12, sbtVersion=1.0)
在初始构建期间,它不会下载以下文件-
https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.6/ivys/ivy.xml
NaN% [ ] 0 B (0 B / s)
https://repo.typesafe.com/typesafe/ivy-releases/com.eed3si9n/sbt-assembly/scala_2.12/sbt_1.0/0.14.6/ivys/ivy.xml
NaN% [ ] 0 B (0 B / s)
,最后说[找不到错误]:
https://repo1.maven.org/maven2/com/eed3si9n/sbt-assembly_2.12_1.0/0.14.6/sbt-assembly-0.14.6.pom
ivy.xml
文件存在于给定路径中,但repo1.maven.org
路径不存在。
有没有人遇到过类似的问题?