在多模块项目中,SBT似乎resolvers在构建模块时不使用.解析器在根项目中声明build.sbt如下:
resolvers += "SpringSource Milestone Repository" at "http://repo.springsource.org/milestone"
Run Code Online (Sandbox Code Playgroud)
并且项目声明如下:
lazy val core = project.settings(
libraryDependencies ++= { ... }
)
Run Code Online (Sandbox Code Playgroud)
但是在编译时,没有使用旋转变压器,我得到:
[info] Resolving org.springframework.scala#spring-scala;1.0.0.BUILD-SNAPSHOT ...
[warn] module not found: org.springframework.scala#spring-scala;1.0.0.BUILD-SNAPSHOT
[warn] ==== local: tried
[warn] /home/ariskk/.ivy2/local/org.springframework.scala/spring-scala/1.0.0.BUILD-SNAPSHOT/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/springframework/scala/spring-scala/1.0.0.BUILD-SNAPSHOT/spring-scala-1.0.0.BUILD-SNAPSHOT.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.springframework.scala#spring-scala;1.0.0.BUILD-SNAPSHOT: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
Run Code Online (Sandbox Code Playgroud)
什么想法可能是错的?
Jac*_*ski 10
在根项目中使用以下内容build.sbt:
resolvers in ThisBuild += "SpringSource Milestone Repository" at "http://repo.springsource.org/milestone"
Run Code Online (Sandbox Code Playgroud)
in ThisBuild是答案.见范围.