Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use JGit with Maven

Tags:

maven

jgit

I'm new to GIT and want to use JGit to create repository and remove it beside other operations from a Java maven project. And I want to know what dependencies are needed for that.

The following link what I read a bout JGit http://wiki.eclipse.org/JGit/User_Guide#Getting_Started

like image 331
gasser Avatar asked Nov 26 '22 19:11

gasser


1 Answers

You can consume JGit (see http://www.eclipse.org/jgit/download/ ) in Maven:

<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>1.0.0.201106090707-r</version>
    </dependency>
  </dependencies>
like image 85
Sonson Avatar answered Dec 09 '22 09:12

Sonson