Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » Cannot download jgit from maven
Cannot download jgit from maven [message #635719] Wed, 27 October 2010 16:06 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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: Fri Jul 04 09:11:05 EDT 2025

Powered by FUDForum. Page generated in 0.84795 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top