Eugene Burtsev's blog

Google Gdata Maven Repository

Some time ago, I was searching for google gdata maven repository, but I was surprised - it has no any maven repositories! Of course, there are a new google-api-java-client, , but it do not implements all google API’s, for example it don’t implement Provisioning API for domains.

I found some repositories with older versions of library.

Also I found awesome script which helps to create local maven repo for Google’s gdata library.

I used modified version of this script to create my own repository hosted on my server. I’ll happy if it will be helpfull for someone.

Details under the cut

How to use:
First connect the repository to your pom.xml, such as in the example below:

pom.xml
1
2
3
4
5
6
7
<repositories>
  <repository>
      <id>burtsev-net-maven</id>
      <name>Burtsev.Net Maven Repository</name>
      <url>http://maven.burtsev.net</url>
  </repository>
</repositories>

Also you can use mirror on github:

pom.xml
1
2
3
4
5
6
7
<repositories>
  <repository>
      <id>gdata-maven-github</id>
      <name>Google Gdata Maven Repository</name>
      <url>https://raw.github.com/eburtsev/gdata-maven/master/</url>
  </repository>
</repositories>

And secondly use the dependencies. For example using of Calendar API v2.0:

pom.xml
1
2
3
4
5
<dependency>
  <groupId>com.google.gdata.gdata-java-client</groupId>
  <artifactId>gdata-calendar-2.0</artifactId>
  <version>1.46.0</version>
</dependency>

That’s it:) I hope it is useful to someone:)

P.S. Modified script you can get here

Upd. 2012-04-24: Repository has been updated, added gdata libraries v1.47.0
Upd. 2012-08-14: Repository has been updated, added gdata libraries v1.47.1
Upd. 2012-12-23: Added sources and javadocs jars

Comments