How to use JGit with Maven

I am new to GIT and want to use JGit to create a repository and delete it next to other operations from the Java maven project. And I want to know what dependencies are needed for this.

The following link that I read the JGit fight http://wiki.eclipse.org/JGit/User_Guide#Getting_Started

+5
source share
4 answers

You can use 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>
+1
source

Now it's in Maven Central, see here

https://mvnrepository.com/artifact/org.eclipse.jgit

0
source

maven

<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>4.8.0.201705170830-rc1</version>
</dependency>

URL-: https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit

0

If you configured git correctly in your Maven project, you can do a lot of things with Maven

-2
source

All Articles