Cannot download jgit from maven [message #635719] |
Wed, 27 October 2010 16:06  |
Eclipse User |
|
|
|
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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.84795 seconds