且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用 SBT 重新下载依赖项的 SNAPSHOT 版本

更新时间:2022-12-12 19:49:45

你应该试试:

libraryDependencies += "org.specs2" %% "specs2" % "1.7-SNAPSHOT" % "test" changing()

changed() 将指定依赖项可以改变,并且它必须在每次 update 时下载它.

changing() will specify that the dependency can change and that it ivy must download it on each update.

也许您也可以尝试使用 ivyXML 定义您的存储库.像这样:

Maybe you could also try to define your repository using ivyXML. Something like this :

ivyXML :=
  <resolvers>
        <ibiblio name="specs2 snapshot repo" changingPattern="*-SNAPSHOT" m2compatible="true" root="http://scala-tools.org/repo-snapshots"/>
  </resolvers>

希望这会有所帮助.