Apr
12
2009

Google YouTube (and other) API’s – maven2 artifacts

Been playing with the google java API’s for youtube as a part of the Sheffield virtual classroom project. I was shocked to find there weren’t any maven artifacts for the jars. Here’s the commands to take the distributed jars and cram them into your local maven2 repo. (Updated for latest versions as at 22/08/2009).

Download the zip package from googlecode at http://code.google.com/p/gdata-java-client/downloads/list

then cd to the lib directory and run

mvn install:install-file -DgroupId=gdata -DartifactId=base -Dversion=1.0 -Dfile=gdata-base-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=blogger -Dversion=2.0 -Dfile=gdata-blogger-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=blogger-meta -Dversion=2.0 -Dfile=gdata-blogger-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=books -Dversion=1.0 -Dfile=gdata-books-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=books-meta -Dversion=1.0 -Dfile=gdata-books-meta-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=calendar -Dversion=2.0 -Dfile=gdata-calendar-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=calendar-meta -Dversion=2.0 -Dfile=gdata-calendar-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=client -Dversion=1.0 -Dfile=gdata-client-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=client-meta -Dversion=1.0 -Dfile=gdata-client-meta-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=codesearch -Dversion=2.0 -Dfile=gdata-codesearch-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=codesearch-meta -Dversion=2.0 -Dfile=gdata-codesearch-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=contacts -Dversion=3.0 -Dfile=gdata-contacts-3.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=contacts-meta -Dversion=3.0 -Dfile=gdata-contacts-meta-3.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=core -Dversion=1.0 -Dfile=gdata-core-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=docs -Dversion=2.0 -Dfile=gdata-docs-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=docs-meta -Dversion=2.0 -Dfile=gdata-docs-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=finance -Dversion=2.0 -Dfile=gdata-finance-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=finance-meta -Dversion=2.0 -Dfile=gdata-finance-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=health -Dversion=2.0 -Dfile=gdata-health-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=health-meta -Dversion=2.0 -Dfile=gdata-health-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=media -Dversion=1.0 -Dfile=gdata-media-1.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=photos -Dversion=2.0 -Dfile=gdata-photos-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=photos-meta -Dversion=2.0 -Dfile=gdata-photos-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=spreadsheet -Dversion=3.0 -Dfile=gdata-spreadsheet-3.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=spreadsheet-meta -Dversion=3.0 -Dfile=gdata-spreadsheet-meta-3.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=youtube -Dversion=2.0 -Dfile=gdata-youtube-2.0.jar  -Dpackaging=jar -DgeneratePom=true
mvn install:install-file -DgroupId=gdata -DartifactId=youtube-meta -Dversion=2.0 -Dfile=gdata-youtube-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true

Edit - With the latest downloads you will also need to download the collections extensions at http://code.google.com/p/google-collections/ and install using

mvn install:install-file -DgroupId=gdata -DartifactId=youtube-meta -Dversion=2.0 -Dfile=gdata-youtube-meta-2.0.jar  -Dpackaging=jar -DgeneratePom=true

posted in java, maven2, project-sheffield-virtual-classroom by ianibbo

Follow comments via the RSS Feed | Leave a comment | Trackback URL

1 Comment to "Google YouTube (and other) API’s – maven2 artifacts"

  1. Shishka wrote:

    Thank you! I added this page to bookmark)) I think would be useful …

Leave Your Comment

2 visitors online now
2 guests, 0 members
Max visitors today: 3 at 12:20 am UTC
This month: 4 at 09-03-2010 06:33 am UTC
This year: 32 at 08-31-2010 10:32 am UTC
All time: 32 at 08-31-2010 10:32 am UTC
 
Powered by Wordpress and MySQL. Theme by openark.org