Monday, January 12, 2009

Quick Note on Google Code OAuth SVN Checkout

I'm looking at the Google OAuth code (http://code.google.com/p/oauth). It's pretty light on instructions. To compile the Java checkout from SVN, you also need to check out the Maven repositories:

mkdir oauth-fun; cd oauth-fun
svn checkout http://oauth.googlecode.com/svn/code/java
svn checkout http://oauth.googlecode.com/svn/code/maven

You compile with

cd java (assuming you are in oauth-fun)
mvn clean install

The problem is that my checkout today didn't compile. I had to add the maven repository to the top level pom.xml (the one in oauth-fun/java) like so:

<repositories>
<repository>
<id>oauth-local</id>
<url>file:../maven</url>
</repository>
</repositories>

No comments: