Apache commons-imaging; 1.0-SNAPSHOT:未找到

时间:2016-11-01 17:32:29

标签: sbt maven-central

如何使SBT构建足够可靠,以便在生产环境中使用?

具体来说,SBT通常没有问题,但是每隔几周,就找不到 commons-imaging 依赖关系,暂停整个构建。

在build.sbt:

libraryDependencies ++= Seq(
   , "commons-io" % "commons-io" % "2.4"
   , "org.apache.commons" % "commons-imaging" % "1.0-SNAPSHOT" withSources ()
)

resolvers in ThisBuild ++= Seq(
   "Apache Development Snapshot Repository" at "https://repository.apache.org/content/repositories/snapshots/"
)

sbt.ResolveException:未解析的依赖项:org.apache.commons#commons-imaging; 1.0-SNAPSHOT:not found

这通常可行。但最近开始给予:

[warn] Unable to reparse org.apache.commons#commons-imaging;1.0-SNAPSHOT from Apache Development Snapshot Repository

(1)为什么这么间歇?它是更改的解析器URL,还是为公共映像jar提供服务的Web站点? (其他maven资源在没有遇到打嗝的情况下被发现。)

(2)可以采取哪些措施来确保干净的构建始终成功? (这对于启动新实例并期望它成功至关重要。)

编辑:这并没有回答这个问题,但我找到了解决这一特定问题的方法,即删除" withSources()"允许构建成功。

0 个答案:

没有答案