| Issue 2893: | Can't build its-bugzilla against gerrit > 2.9 | |
| 2 people starred this issue and may be notified of changes. | Back to list |
************************************************************ ***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW ***** ***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL ***** ***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC. ***** ***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS! ***** ************************************************************ Affected Version: HEAD (anything 2.9+) What steps will reproduce the problem? 1. git clone https://gerrit.googlesour ce.com/plugins/its-base && cd its-base 2. mvn install -DskipTests=true -Dmaven.javadoc.skip=true [INFO] Installing /foo/its-base-2.11-SNAPSHOT.jar to /home/gerrit/.m2/repository/com/googlesource/gerrit/plugins/its/its-base/2.11-SNAPSHOT/its-base-2.11-SNAPSHOT.jar [INFO] Installing /foo/pom.xml to /home/gerrit/.m2/repository/com/googlesource/gerrit/plugins/its/its-base/2.11-SNAPSHOT/its-base-2.11-SNAPSHOT.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS 3. cd ../ && git clone https://gerrit.googlesource.com/plugins/its-bugzilla && cd its-bugzilla [gerrit@e5750e25cfa8 its-bugzilla]$ mvn install -DskipTests=true -Dmaven.javadoc.skip=true [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Gerrit - Bugzilla support 2.9-SNAPSHOT [INFO] ------------------------------------------------------------------------ [WARNING] The POM for com.googlesource.gerrit.plugins.its:its-base:jar:2.9-SNAPSHOT is missing, no dependency information available [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.556s [INFO] Finished at: Tue Sep 09 20:30:54 BST 2014 [INFO] Final Memory: 4M/118M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project its-bugzilla: Could not resolve dependencies for project com.googlesource.gerrit.plugins.bugzilla:its-bugzilla:jar:2.9-SNAPSHOT: Failure to find com.googlesource.gerrit.plugins.its:its-base:jar:2.9-SNAPSHOT in https://gerrit-maven.commondatastorage.googleapis.com was cached in the local repository, resolution will not be reattempted until the update interval of gerrit-maven has elapsed or updates are forced -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException What is the expected output? What do you see instead? cloning and installing the latest its-base creates .m2/repository/com/googlesource/gerrit/plugins/its/its-base/2.11-SNAPSHOT/its-base-2.11-SNAPSHOT.jar cloning and attempting the to install the latest its-bugzilla looks for <artifactId>its-base</artifactId> <version>${project.version}</version> the its-bugzilla plugin is not compatible with its-base 2.11, it appears to only go as far as 2.9 If edit the pom file to depend on 2.11-SNAPSHOT it you get errors like this. InitBugzilla.java:[51,49] error: cannot find symbol Please provide any additional information below. Building the 2.9 version works. ##### git clone --recursive -b stable-2.9 https://gerrit.googlesource.com/gerrit buck build api buck build api_install cd buck-out/gen/gerrit-plugin-api/ mvn install:install-file \ -DgroupId=com.google.gerrit \ -DartifactId=gerrit-plugin-api \ -Dversion=2.9 \ -Dpackaging=jar \ -Dfile=plugin-api.jar cd its-base sed -i s/SNAPSHOT//g pom.xml sed -i s/SNAPSHOT//g its-base/pom.xml mvn install -DskipTests=true -Dmaven.javadoc.skip=true [INFO] BUILD SUCCESS Anyways, any help would be appreciated. I'd like to use this plugin but I'm uncertain how well it is maintained. or what will become of it going forward. It appears that Wikipedia is still using the depreciated version and they have some patches wrg bugzilla 4.4.4+ that would need to be upstreamed for this to work going forward. Link: https://gerrit.wikimedia.org/r/#/c/133732/
Sep 9, 2014
#2
act...@aricgardner.com
Sep 9, 2014
Title should read Can't build its-bugzilla against gerrit > 2.9
Sep 28, 2014
(No comment was entered for this change.)
Summary:
Can't build its-bugzilla against gerrit > 2.9
(was: Can't build its-bugzilla against gerrit < 2.9)
Sep 30, 2014
According to your gist link you can successfully build it.
Status:
AwaitingInformation
Jun 12, 2015
just to note maven builds have been deprecated. it's buck going forward.
Status:
Invalid
|
|
| ► Sign in to add a comment |