下面是我在项目中使用的build.sbt:
name := "FaceReg"
version := "1.0"
libraryDependencies += "org.openimaj" % "image-processing" % "1.2.1"在update执行项目时,sbt报告UNRESOLVED DEPENDENCIES
[info] Resolving org.openimaj#image-processing;1.2.1 ...
[warn] module not found: org.openimaj#image-processing;1.2.1
[warn] ==== local: tried
[warn] /Users/jacek/.ivy2/local/org.openimaj/image-processing/1.2.1/ivys/ivy.xml
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/org/openimaj/image-processing/1.2.1/image-processing-1.2.1.pom
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: org.openimaj#image-processing;1.2.1: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: org.openimaj#image-processing;1.2.1: not found有什么问题吗?如何解决这个问题?
发布于 2014-07-16 19:19:37
OpenImaj有自己的存储库并没有将工件发布到maven中心(默认情况下,这是sbt查阅的为数不多的存储库之一)。
将下面的resolvers添加到build.sbt以使依赖关系得到正确的解决,您就可以了:
resolvers += "OpenIMAJ maven releases repository" at "http://maven.openimaj.org"
resolvers += "OpenIMAJ maven snapshots repository" at "http://snapshots.openimaj.org"另外,要确保只在工件中使用%,而不是%%,因为现在看来,在依赖项中使用的是特定的Scala版本,而这并不是OpenImaj所希望的。
https://stackoverflow.com/questions/24788391
复制相似问题