我试图为现有的Scala项目调整sbt build,但没有成功,这个项目以前工作得很好,但留下了任何文档。似乎替换了不正确的URL来解析“sbt.jar”的依赖关系...
在my_project目录内:
ear
application.xml
web-logic-application.xml
project
target
config-classes
*.class
src
main
java
package(java-utils)
scala
package(scala)
my_app.properties
spring.xml
...
webapp
WEB-INF
web.xml
test
scala
resources
build.sbt
name := "my_project"
organization := "my.app"
version := "1.0"
scalaVersion := "2.10.2"
...
libraryDependencies += ...
[repositories]
local
maven-central
typesafe: http://repo.typesafe.com/typesafe/releases/
typesafe-snapshots: http://repo.typesafe.com/typesafe/snapshots/
C:\users\svc\.sbt\0.13.5\plugins\plugins.sbt:
resolvers += "typesave" at "http://repo.typesafe.com/typesafe/releases"
addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
C:\程序文件(x86)\sbt\conf\sbtconfig.txt(在本地PC上安装sbt后未更改):
# Set the java args to high */
-Xmx512M
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=128m
# Set the extra SBT options */
-Dsbt.log.format=true
日志显示:
Getting org.scala-sbt sbt 0.13.5 ...
:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;0.13.5
==== local: tried
C:\Users\svc\.ivy2\local\org.scala-sbt\sbt\0.13.5\ivys\ivy.xml
-- artifact org.scala-sbt#sbt;0.13.5!sbt.jar:
C:\Users\svc\.ivy2\local\org.scala-sbt\sbt\0.13.5\jars\sbt.jar
==== Maven Central: tried
http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.pom
-- artifact org.scala-sbt#sbt;0.13.5!sbt.jar:
http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar
==== typesafe: tried
http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.pom
-- artifact org.scala-sbt#sbt;0.13.5!sbt.jar:
http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;0.13.5: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Connection refused: connect url=http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.pom
Server access Error: Connection refused: connect url=http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar
Server access Error: Connection refused: connect url=http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.pom
Server access Error: Connection refused: connect url=http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar
...
通过http://repo1.maven.org/maven2/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar或通过http://repo.typesafe.com/typesafe/releases/org/scala-sbt/sbt/0.13.5/sbt-0.13.5.jar
有人能建议吗?
尝试安装ssl证书。您可以尝试使用下面的命令。它帮助我解决了同样的问题。(Ubuntu 15.04)
update-ca-certificates -f
我已经和它斗争了好几天了,但还是没有运气:(尝试添加一些“解析器”等,但我没有任何正确的前进方向。看起来没有org.scala-sbt#sbt;0.12.3,但我可以使用我的浏览器访问http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/0.12.3/ivys/ivys/ivy.xml(所以工件是可用的)。 我是在代理服务
当我在PC上运行时--我会得到错误消息。 ====typesafe-ivy-releases:已尝试 也许他们之间必须有一个别名,但现在没有了。 如何修复此问题? 或者可以修复它吗?
当我尝试启动sbt时,我得到以下消息: 但是,同时安装了Java和Scala 这是斯卡拉 我正在Mac Os Sierra V10.12.6中运行所有这些,我将非常感谢任何帮助。提前道谢。
我有一个Play应用程序,当我运行时,我得到一个错误,如下所示: 但实际上,这个插件的路径是而不是失败的试用。 project/plugin.sbt如下所示: 请指教。
在unix shell中尝试以下操作: https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/0.13.7/jars/precompiled-2_8_2.jar https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/prec