MavenReleaseProcess


How to build and release the OAuth java libraries with Maven:

 

1) Install Maven

Download maven 2 from http://maven.apache.org/download.html.

Follow the instructions on the download page to configure Maven for your machine (you probably need to set JAVA_HOME).

 

2) Check out the java code and maven repository

svn co https://oauth.googlecode.com/svn/code/java java

svn co https://oauth.googlecode.com/svn/code/maven maven

 

3) Edit all of the pom.xml files in the java directory (there are five) and bump the tags (all of them) to the current date in YYYYMMDD format.

 

4) Build the code, run the tests, and deploy the new libraries to the repository

cd java

mvn deploy

 

5) Check in the pom.xml change:

svn ci

 

6) Upload new files to the maven repository:

cd ../maven

find . -name YYYYMMDD | xargs svn add

svn ci