【发布时间】:2012-02-03 01:13:14
【问题描述】:
我正在clojure 中启动lein new 项目,并想使用goose 文章提取库。不幸的是,我在任何公开可用的 maven 存储库中都找不到该库的 jar,因此我着手将其添加到本地 maven 存储库。
在项目目录中,我复制了goose jar及其pom.xml文件并做了
mkdir maven-repo
mvn install:install-file -Dfile=goose-2.1.6.jar -DartifactId=goose -Dversion=2.1.6 \
-DgroupId=local -Dpackaging=jar -DlocalRepositoryPath=maven-repo -DpomFile=pom.xml
并将以下内容添加到project.clj
:repositories {"local" ~(str (.toURI (java.io.File. "maven-repo")))}
和[local/goose "2.1.6"] 在:dependencies。现在,当我执行lein deps 时,我将 goose-2.1.6.jar 文件添加到 lib 目录,但没有 goose 的依赖项。它们列在 goose 的 pom.xml 文件中。
除了在我的project.clj 中列出 goose 的依赖项之外,还有其他方法可以解决此问题吗?
【问题讨论】: