我希望sbt使用我自己的nexus服务器。当我在终端中运行sbt命令时,它会从中央存储库下载插件和工件。
我发现这篇文章解释了如何做到这一点:http://www.scala-sbt.org/release/docs/Proxy-Repositories.html
我现在所做的事情:
http://repo.typesafe.com/typesafe/ivy-releases/
http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/
http://repo.typesafe.com/typesafe/releases/
https://dl.bintray.com/sbt/sbt-plugin-releases/
这些回购品是常春藤风格(我不明白它的含义),所以我希望maven2支持它。
然后我为这4个回购创建了组存储库(repository / proxy-ivy /)。
3。 对于其他工件,我使用已创建的maven2 repo(repository / maven-public /),它是中央,快照和托管存储库的组。
所以这就是我要做的就是让它发挥作用。没有? 我运行:sbt -Dsbt.override.build.repos = true
但我看到未解决的代表:
[info]从中加载项目定义 / home / test / Projects / backend2 / project [info]更新 {file:/ home / test / Projects / backend2 / project /} backend2-build ... [info] 解析io.spray#sbt-revolver;找不到0.8.0 ... [warn]模块: io.spray #sbt-revolver; 0.8.0 [warn] ==== local:试过[警告]
/home/test/.ivy2/local/io.spray/sbt-revolver/scala_2.10/sbt_0.13/0.8.0/ivys/ivy.xml [警告] ==== my-maven:试过[警告]
http://hb.vmc.loc:8081/repository/maven-public/io/spray/sbt-revolver_2.10_0.13/0.8.0/sbt-revolver-0.8.0.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/io.spray/sbt-revolver/scala_2.10/sbt_0.13/0.8.0/ivys/ivy.xml [info]解析com.typesafe.sbt#sbt-native-packager; 1.0.3 ... [warn] 找不到模块:com.typesafe.sbt #sbt-native-packager; 1.0.3 [warn] ==== local:试过[warn] /home/test/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/1.0.3/ivys/ivy.xml [警告] ==== my-maven:试过[警告]
http://hb.vmc.loc:8081/repository/maven-public/com/typesafe/sbt/sbt-native-packager_2.10_0.13/1.0.3/sbt-native-packager-1.0.3.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/1.0.3/ivys/ivy.xml [info]解析org.scala-sbt#sbt; 0.13.9 ... [warn]模块没有 发现:org.scala-sbt#sbt; 0.13.9 [warn] ==== local:试过[警告]
/home/test/.ivy2/local/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml [warn] ==== my-maven:试过[警告] http://hb.vmc.loc:8081/repository/maven-public/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml [info]解析org.fusesource.jansi#jansi; 1.4 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::警告: :
无人解决的依赖:: [警告] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::警告: : io.spray#sbt-revolver; 0.8.0:未找到[warn] :: com.typesafe.sbt#sbt-native-packager; 1.0.3:not found [warn] :: org.scala-sbt#sbt; 0.13.9:未找到[warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [警告] [警告]注意: 一些未解析的依赖项具有额外的属性。检查一下这些 依赖项与请求的属性一起存在。 [警告] io.spray:sbt-revolver:0.8.0(scalaVersion = 2.10,sbtVersion = 0.13) [warn] com.typesafe.sbt:sbt-native-packager:1.0.3 (scalaVersion = 2.10,sbtVersion = 0.13)[警告] [警告]注意:未解决 依赖路径:[warn] io.spray:sbt-revolver:0.8.0 (scalaVersion = 2.10,sbtVersion = 0.13) (/home/test/Projects/backend2/project/plugins.sbt#L1-2)[警告] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)[warn] com.typesafe.sbt:sbt-native-packager:1.0.3 (scalaVersion = 2.10,sbtVersion = 0.13) (/home/test/Projects/backend2/project/plugins.sbt#L2-3)[警告] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)[warn] org.scala-sbt:sbt:0.13.9 [warn] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)sbt.ResolveException:未解析的依赖项: io.spray#sbt-revolver; 0.8.0:未找到[info]正在加载项目 来自/ home / test / Projects / backend2 / project [info]的定义更新 {file:/ home / test / Projects / backend2 / project /} backend2-build ... [info] 解析io.spray#sbt-revolver;找不到0.8.0 ... [warn]模块: io.spray #sbt-revolver; 0.8.0 [warn] ==== local:试过[警告]
/home/test/.ivy2/local/io.spray/sbt-revolver/scala_2.10/sbt_0.13/0.8.0/ivys/ivy.xml [警告] ==== my-maven:试过[警告]
http://hb.vmc.loc:8081/repository/maven-public/io/spray/sbt-revolver_2.10_0.13/0.8.0/sbt-revolver-0.8.0.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/io.spray/sbt-revolver/scala_2.10/sbt_0.13/0.8.0/ivys/ivy.xml [info]解析com.typesafe.sbt#sbt-native-packager; 1.0.3 ... [warn] 找不到模块:com.typesafe.sbt #sbt-native-packager; 1.0.3 [warn] ==== local:试过[warn] /home/test/.ivy2/local/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/1.0.3/ivys/ivy.xml [警告] ==== my-maven:试过[警告]
http://hb.vmc.loc:8081/repository/maven-public/com/typesafe/sbt/sbt-native-packager_2.10_0.13/1.0.3/sbt-native-packager-1.0.3.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/com.typesafe.sbt/sbt-native-packager/scala_2.10/sbt_0.13/1.0.3/ivys/ivy.xml [info]解析org.scala-sbt#sbt; 0.13.9 ... [warn]模块没有 发现:org.scala-sbt#sbt; 0.13.9 [warn] ==== local:试过[警告]
/home/test/.ivy2/local/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml [warn] ==== my-maven:试过[警告] http://hb.vmc.loc:8081/repository/maven-public/org/scala-sbt/sbt/0.13.9/sbt-0.13.9.pom [警告] ==== my-ivy:试过[警告]
http://hb.vmc.loc:8081/repository/proxy-ivy/org.scala-sbt/sbt/0.13.9/ivys/ivy.xml [info]解析org.fusesource.jansi#jansi; 1.4 ... [warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::警告: :
无人解决的依赖:: [警告] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::警告: : io.spray#sbt-revolver; 0.8.0:未找到[warn] :: com.typesafe.sbt#sbt-native-packager; 1.0.3:not found [warn] :: org.scala-sbt#sbt; 0.13.9:未找到[warn] :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: [警告] [警告]注意: 一些未解析的依赖项具有额外的属性。检查一下这些 依赖项与请求的属性一起存在。 [警告] io.spray:sbt-revolver:0.8.0(scalaVersion = 2.10,sbtVersion = 0.13) [warn] com.typesafe.sbt:sbt-native-packager:1.0.3 (scalaVersion = 2.10,sbtVersion = 0.13)[警告] [警告]注意:未解决 依赖路径:[warn] io.spray:sbt-revolver:0.8.0 (scalaVersion = 2.10,sbtVersion = 0.13) (/home/test/Projects/backend2/project/plugins.sbt#L1-2)[警告] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)[warn] com.typesafe.sbt:sbt-native-packager:1.0.3 (scalaVersion = 2.10,sbtVersion = 0.13) (/home/test/Projects/backend2/project/plugins.sbt#L2-3)[警告] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)[warn] org.scala-sbt:sbt:0.13.9 [warn] + - 默认值:backend2-build:0.1-SNAPSHOT(scalaVersion = 2.10, sbtVersion = 0.13)sbt.ResolveException:未解析的依赖项: io.spray#sbt-revolver; 0.8.0:未找到
感谢任何帮助!