寻找适合Java的体面Git库 [英] Looking for decent Git libraries for Java

查看:90
本文介绍了寻找适合Java的体面Git库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



任何人都可以推荐任何?

解决方案

我相信你可以使用 JGit


$ b 主要页面包括:


< JGit只有很少的依赖关系,适合嵌入到任何Java应用程序中,无论应用程序是否利用其他Eclipse或OSGi技术。 b $ b

下载页面提到:


可以在Maven构建中使用JGit。

根据应用程序的需求,可以使用多个构件:



请参阅

摘录:

 < repositories> 
< repository>
< id> jgit-repository< / id>
< url> http://download.eclipse.org/jgit/maven< / url>
< / repository>
< / repositories>

<! - 核心资料库 - >
<依赖关系>
< dependency>
< groupId> org.eclipse.jgit< / groupId>
< artifactId> org.eclipse.jgit< / artifactId>
< version> 3.4.1.201406201815-r< / version>
< /依赖关系>
< /依赖关系>

当前支持的git命令的确切列表并不总是最新的(如错误317482说明了):

2013年9月更新 - 2014年7月:以下所有命令现已可用

.stack.imgur.com / ETgTY.pngalt =alt text>


I am looking for a decent Git library for Java for stand-alone applications.

Can anyone recommend any?

解决方案

I believe you can use JGit in your Java application.

The main page includes:

JGit has very few dependencies, making it suitable for embedding in any Java application, whether or not the application is taking advantage of other Eclipse or OSGi technologies.

The download page mentions that:

JGit can be consumed in a Maven build.
Multiple artifacts are available, depending on the application's requirements:

See a full pom.xl in jgit-cookbook/blob/master/pom.xml:

Extract:

<repositories>
    <repository>
      <id>jgit-repository</id>
      <url>http://download.eclipse.org/jgit/maven</url>
    </repository>
  </repositories>

  <!-- Core Library -->
  <dependencies>
    <dependency>
      <groupId>org.eclipse.jgit</groupId>
      <artifactId>org.eclipse.jgit</artifactId>
      <version>3.4.1.201406201815-r</version>
    </dependency>
  </dependencies>

The exact list of git commands currently supported is not always up-to-date (as the bug 317482 illustrates):

Update September 2013 - July 2014: all the commands below are now available.

这篇关于寻找适合Java的体面Git库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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