Clojure Leiningen:与本地git回购合作
我想在中更改一些内容,所以我在github上创建了一个fork,并在我的笔记本电脑上克隆了它。现在,当我尝试使用Clojure Leiningen:与本地git回购合作,clojure,leiningen,incanter,Clojure,Leiningen,Incanter,我想在中更改一些内容,所以我在github上创建了一个fork,并在我的笔记本电脑上克隆了它。现在,当我尝试使用lein test运行测试时,会出现以下错误: /Users/me/work/incanter$ lein test Could not find artifact incanter:incanter-core:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/) Could not find artifact incant
lein test
运行测试时,会出现以下错误:
/Users/me/work/incanter$ lein test
Could not find artifact incanter:incanter-core:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-io:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-charts:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-mongodb:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-pdf:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-svg:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-latex:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-excel:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-sql:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
Could not find artifact incanter:incanter-zoo:jar:1.5.8-SNAPSHOT in clojars (https://clojars.org/repo/)
This could be due to a typo in :dependencies or network issues.
If you are behind a proxy, try setting the 'http_proxy' environment variable.
/Users/me/work/incanter$
我还没有更改项目中的任何内容。clj
,现在是:
(defproject incanter "1.5.8-SNAPSHOT"
:description "Incanter is a Clojure-based, R-like statistical programming and data visualization environment."
:url "http://incanter.org/"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:scm {:name "git" :url "https://github.com/incanter/incanter"}
:min-lein-version "2.0.0"
:dependencies [[incanter/incanter-core "1.5.8-SNAPSHOT"]
[incanter/incanter-io "1.5.8-SNAPSHOT"]
[incanter/incanter-charts "1.5.8-SNAPSHOT"]
[incanter/incanter-mongodb "1.5.8-SNAPSHOT"]
[incanter/incanter-pdf "1.5.8-SNAPSHOT"]
[incanter/incanter-svg "1.5.8-SNAPSHOT"]
[incanter/incanter-latex "1.5.8-SNAPSHOT"]
[incanter/incanter-excel "1.5.8-SNAPSHOT"]
[incanter/incanter-sql "1.5.8-SNAPSHOT"]
[incanter/incanter-zoo "1.5.8-SNAPSHOT"]
[org.clojure/clojure "1.5.1"]
]
:profiles {:dev {:resource-paths ["data"]}
:debug {:debug true}
:uberjar {:aot :all
:main incanter.main
:dependencies [[reply "0.3.0" :exclusions [org.clojure/clojure]]
[swingrepl "1.3.0"
:exclusions [org.clojure/clojure org.clojure/clojure-contrib]]
]
}
}
:repl-options {:init-ns incanter.irepl
:resource-paths ["data"]
:init (do
(set! *print-length* 500)
(use 'clojure.repl))
}
:jvm-opts ["-Xmx1g" "-Djsse.enableSNIExtension=false"
~(str "-Dincanter.home=" (System/getProperty "user.dir"))]
)
非常感谢您的帮助。您可以使用以下方法: 创建这些项目的jar(
leinuberjar
)
然后对每个jar使用以下命令:
mvn install:install-file \
-Dfile=maven_repository/my-project.jar \ ;;path to your jar(this is example)
-DgroupId= incanter \
-DartifactId= incanter \
-Dversion=0.1.0 \
-Dpackaging=jar \
-DgeneratePom=true
然后将DEP添加到您的项目.clj
并刷新leiningen:
[incanter/incanter "0.1.0"]
[groupId/artifactId "your-version"]
...
您可以使用以下方法: 创建这些项目的jar(
leinuberjar
)
然后对每个jar使用以下命令:
mvn install:install-file \
-Dfile=maven_repository/my-project.jar \ ;;path to your jar(this is example)
-DgroupId= incanter \
-DartifactId= incanter \
-Dversion=0.1.0 \
-Dpackaging=jar \
-DgeneratePom=true
然后将DEP添加到您的项目.clj
并刷新leiningen:
[incanter/incanter "0.1.0"]
[groupId/artifactId "your-version"]
...
我看了一下这个项目。您必须在/modules下生成任何项目,以便在本地.m2上生成快照版本1.5.8-snapshot/
cd modules
cd incanter-core
lein install
...
那我觉得应该行得通。您可以将依赖项减少到1.5.7。我查看了该项目。您必须在/modules下生成任何项目,以便在本地.m2上生成快照版本1.5.8-snapshot/
cd modules
cd incanter-core
lein install
...
那我觉得应该行得通。或者,您可以将依赖项减少到1.5.7。您想从本地(我是说从您的系统)使用该LIB吗?问题是你的~/.m2(maven)中没有这些DEP,你得到了这个异常,leiningen尝试在clojars中搜索。对不起,我是Clojure的新手,对maven不太熟悉。能否请您详细说明在我的本地maven目录中获取DEP需要做些什么?maven是leiningen在下面使用的构建工具,如果不清楚我可以详细编辑它,我已经回答了您的问题。您是否从Incanter项目根目录下的命令行执行了
lein install
?这是通常的方式,尽管通常每个项目有一个jar。但值得一试。此外,您还应该手动查看.m2目录中的内容。如果您想向白炽灯提交修补程序,我建议使用development
分支。并且它支持sub
&modules
插件,因此您可以执行lein sub test
来执行所有模块的test
任务。您想使用本地(我是指您的系统)的LIB吗?问题是你的~/.m2(maven)中没有这些DEP,你得到了这个异常,leiningen尝试在clojars中搜索。对不起,我是Clojure的新手,对maven不太熟悉。能否请您详细说明在我的本地maven目录中获取DEP需要做些什么?maven是leiningen在下面使用的构建工具,如果不清楚我可以详细编辑它,我已经回答了您的问题。您是否从Incanter项目根目录下的命令行执行了lein install
?这是通常的方式,尽管通常每个项目有一个jar。但值得一试。此外,您还应该手动查看.m2目录中的内容。如果您想向白炽灯提交修补程序,我建议使用development
分支。并且它支持sub
和modules
插件,因此您可以执行lein sub test
来执行所有模块的test
任务。非常感谢。不幸的是,当我运行leinuberjar
时,我遇到了一些错误,比如在clojars中找不到工件incater:incater core:jar:1.5.8-SNAPSHOT(https://clojars.org/repo/)
最后它说:Uberjar因为jar失败而中止:无法解析依赖项
注意,依赖项是白炽灯的子模块。您可以转到并搜索每个模块的最新版本,并根据这些版本进行更新,然后再次尝试运行lein测试?让我知道这些版本似乎已经不存在了。事情是,我想更改其中一个模块(可能更多),所以理想情况下,我希望lein从incanter repo(我的本地克隆)中的源代码构建所有模块并使用它们,而不是从clojars中创建任何其他版本。非常感谢。不幸的是,当我运行leinuberjar
时,我遇到了一些错误,比如在clojars中找不到工件incater:incater core:jar:1.5.8-SNAPSHOT(https://clojars.org/repo/)
最后它说:Uberjar因为jar失败而中止:无法解析依赖项
注意,依赖项是白炽灯的子模块。您可以转到并搜索每个模块的最新版本,并根据这些版本进行更新,然后再次尝试运行lein测试?让我知道这些版本似乎已经不存在了。事情是,我想更改其中一个模块(可能更多),因此理想情况下,我希望lein从incanter repo(我的本地克隆)的源代码构建所有模块并使用它们,而不是从clojars创建任何其他版本。