Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Cannot download jgit from maven
Cannot download jgit from maven [message #635719] Wed, 27 October 2010 16:06 Go to next message
Will Pugh is currently offline Will Pugh
Messages: 2
Registered: October 2010
Junior Member
I tried getting jgit using maven by adding:

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


<dependencies>
<dependency>
<groupId>org.eclipse.jgit</groupId>
<artifactId>org.eclipse.jgit</artifactId>
<version>0.9.3</version>
</dependency>
</dependencies>


To my maven pom. I get the following error:

1) org.eclipse.jgit:org.eclipse.jgit:jar:0.9.3

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.eclipse.jgit -DartifactId=org.eclipse.jgit -Dversion=0.9.3 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.eclipse.jgit -DartifactId=org.eclipse.jgit -Dversion=0.9.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.not.real.name.:jar:0.1
2) org.eclipse.jgit:org.eclipse.jgit:jar:0.9.3


When I try going to http://download.eclipse.org/jgit/maven, I get a page saying I need to access via Eclipse. I don't understand how I get a command line build working if Maven cannot download the jars?

Am I doing something wrong?
Re: Cannot download jgit from maven [message #635722 is a reply to message #635719] Wed, 27 October 2010 16:15 Go to previous message
Will Pugh is currently offline Will Pugh
Messages: 2
Registered: October 2010
Junior Member
Oops. Ignore this. My company had some proxy magic going on, and that caused the problem.

Fixed now.
Previous Topic:How install EGIT plugin offline?
Next Topic:[clone] Cannot list branches with https github uri
Goto Forum:
  


Current Time: Thu Jul 24 02:44:39 EDT 2014

Powered by FUDForum. Page generated in 0.01549 seconds