2

给定一个依赖,说:

libraryDependencies += "foo" % "bar" % "1.0" from "http://foobar.com/foo.bar.jar"

我如何还可以为依赖项指定源工件?

4

1 回答 1

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”

祝你好运。

于 2013-06-10T09:37:01.003 回答