鉴于依赖性,请说:
libraryDependencies += "foo" % "bar" % "1.0" from "http://foobar.com/foo.bar.jar"
我如何指定依赖项的源工件?
答案 0 :(得分:0)
我成功了
libraryDependencies ++= {
Seq(
"net.liftweb" %% "lift-json" % "2.0" from "http://repo1.maven.org/maven2/net/liftweb/lift-json/2.0/lift-json-2.0.jar",
"foo2" % "bar2" % "1.0" from "http://127.0.0.1/static/itext-2.1.5.jar"
)
}
(没有.pom,只有itext-2.1.5.jar文件)
接下来,检查'.classpath'
我的'.classpath'包含
classpathentry path =“MY_HOME / .ivy2 / cache / foo2 / bar2 / jars / bar2-1.0.jar”kind =“lib”
我在/.ivy2/cache/foo2/bar2/jars/文件夹中找到'bar2-1.0.jar'
祝你好运。