如何从git仓库加载最新的Clojure库 [英] how to load latest Clojure lib from git repository

查看:86
本文介绍了如何从git仓库加载最新的Clojure库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用clojure.data.xml的最新开发版本.我正在使用Leiningen来管理依赖项.但是,存储库中

I'd like to use the latest development version of clojure.data.xml. I'm using Leiningen to manage dependencies. However, there is no SNAPSHOT version in the repository on Central. How can I easily load the latest version from GitHub?

推荐答案

Maven Central存储库不包含快照.要使用Clojure项目的快照,您需要将快照存储库添加到项目中.此处的完整详细信息: http://dev.clojure.org/display/community /Maven + Settings +和+存储库

The Maven Central repository does not hold snapshots. To use snapshots of the Clojure projects, you need to add the snapshot repository to your project. Full details here: http://dev.clojure.org/display/community/Maven+Settings+and+Repositories

要添加到Leiningen项目中的关键行是:

The key line to add to a Leiningen project is:

:repositories {"sonatype-oss-public" "https://oss.sonatype.org/content/groups/public/"}

data.xml的最新快照依赖项版本为:

The latest snapshot dependency version for data.xml is:

[org.clojure/data.xml "0.2.0-SNAPSHOT"]

所有Clojure contrib项目的生成和快照均作为每次提交的快照(在1小时的投票中收集),并且无论提交如何,每周都会发布一次.因此,拉快照通常与github上的快照相同或几乎相同.

All Clojure contrib projects are built and released as a snapshot on every commit (gathered in 1 hr polls) AND once a week regardless of commits. So, pulling a snapshot will generally be the same or nearly the same as what's on github.

这篇关于如何从git仓库加载最新的Clojure库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆