| Issue 369: | Gerrit doesn't build from git clone | |
| 1 person starred this issue and may be notified of changes. | Back to list |
Affected Version: Current Git HEAD
Environment: Ubuntu Karmic
What steps will reproduce the problem?
1. git clone git://android.git.kernel.org/tools/gerrit.git
2. cd gerrit/
3. mvn package
What is the expected output? What do you see instead?
I expect a working war file, instead I get:
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) gwtexpui:gwtexpui:jar:1.2.0-SNAPSHOT
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=gwtexpui -DartifactId=gwtexpui
-Dversion=1.2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=gwtexpui -DartifactId=gwtexpui
-Dversion=1.2.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
Path to dependency:
1) com.google.gerrit:gerrit-patch-gwtexpui:jar:2.1-SNAPSHOT
2) gwtexpui:gwtexpui:jar:1.2.0-SNAPSHOT
----------
1 required artifact is missing.
for artifact:
com.google.gerrit:gerrit-patch-gwtexpui:jar:2.1-SNAPSHOT
from the specified remote repositories:
jgit-repository (http://egit.googlecode.com/svn/maven/),
gerrit-maven-repository (http://gerrit.googlecode.com/svn/mavenrepo/),
central (http://repo1.maven.org/maven2),
java.net-repository (http://download.java.net/maven/2/)
Please provide any additional information below.
Dec 26, 2009
Project Member
#1
Shane...@gmail.com
Dec 26, 2009
Other changes required to fix compile errors, are:
Add:
<repositories>
<repository>
<id>gson</id>
<url>http://google-gson.googlecode.com/svn/mavenrepo</url>
</repository>
</repositories>
and:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>1.4</version>
</dependency>
to gerrit-patch-jgit/pom.xml
and add:
<repositories>
<repository>
<name>ObjectWeb Maven Repository</name>
<id>objectweb-releases</id>
<url>http://maven.objectweb.org/maven2</url>
</repository>
</repositories>
and:
<dependency>
<groupId>asm</groupId>
<artifactId>asm</artifactId>
<version>3.2</version>
</dependency>
<dependency>
<groupId>com.google.gwt</groupId>
<artifactId>gwt-user</artifactId>
<version>${gwtVersion}</version>
</dependency>
to gerrit-server/pom.xml.
I've submitted this as a patch (https://review.source.android.com/13068) for review,
but even with the patch gerrit won't compile from a fresh git checkout without a repo
containing snapshot compiles of gwtjsonrpc, gwtexpui and gwtorm being available.
Dec 27, 2009
Change I0f19a97dd4b97ced03b98e542ad922a19697c787 added the missing repositories to the build search path. I tested it by clearing my ~/.m2/repositories directory and redownloading the entire world. Also, the gerrit-snapshot-repository now contains current snapshot builds of all dependencies, so the build works "out of the box" again.
Status:
Fixed
Labels: FixedIn-2.1.1
Nov 2, 2010
Hello, as of 3 november 2010, the problem is still there... "com.google.gerrit:gerrit-patch-jgit:jar:2.1-SNAPSHOT"
Oct 21, 2012
(No comment was entered for this change.)
Status:
Released
|
|
| ► Sign in to add a comment |