StephenKing / gerrit-plugin-external-url-avatar-provider

An avatar provider for Gerrit retrieving the avatar image from a given URL
1 stars 1 forks source link

Compile failure: cannot find dependencies #1

Open blair opened 11 years ago

blair commented 11 years ago

Hello,

I'd like to build this for our 2.6-rc2 deployment but it fails with the below. Any suggestions?

Thanks, Blair

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building external-url-avatar-provider 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: https://gerrit-api.commondatastorage.googleapis.com/snapshot/com/google/gerrit/gerrit-plugin-api/2.7-SNAPSHOT/maven-metadata.xml
Downloading: https://gerrit-api.commondatastorage.googleapis.com/snapshot/com/google/gerrit/gerrit-plugin-api/2.7-SNAPSHOT/gerrit-plugin-api-2.7-SNAPSHOT.pom
[WARNING] The POM for com.google.gerrit:gerrit-plugin-api:jar:2.7-SNAPSHOT is missing, no dependency information available
Downloading: https://gerrit-api.commondatastorage.googleapis.com/snapshot/com/google/gerrit/gerrit-plugin-api/2.7-SNAPSHOT/gerrit-plugin-api-2.7-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.781s
[INFO] Finished at: Fri May 10 17:44:00 PDT 2013
[INFO] Final Memory: 15M/360M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project external-url-avatar-provider: Could not resolve dependencies for project com.googlesource.gerrit.plugins.avatar_providers:external-url-avatar-provider:jar:1.0-SNAPSHOT: Could not find artifact com.google.gerrit:gerrit-plugin-api:jar:2.7-SNAPSHOT in gerrit-api-repository (https://gerrit-api.commondatastorage.googleapis.com/snapshot/) -> [Help 1]
StephenKing commented 11 years ago

Hey @blair, please note that the code is still at a very early stage and I don't know yet, where to read the information about the avatar location from.

However, you still should be able to compile the code and play with it. Therefore you need the gerrit-plugin-api*.jar file. Go and get the Gerrit source, checkout the stable-2.7 branch and type mvn -P all clean install, see here.

StephenKing commented 11 years ago

For the moment, I created a TYPO3-specific avatar provider, which you could adapt to your needs. I'm waiting for answer, how to store the avatar URL somewhere in the data base.