Saturday, May 2, 2009

GAE APIs for maven

Tim has an excellent post about setting up a maven project for GAE. It basically contains all you need to get started coding. However, he's missed some things. First (what I have discovered so far) is that the APIs are not included. Using the UserService API from google, this won't work. So we have to include it in maven. First, install the artifact locally from the SDK package from google.

mvn install:install-file -Dfile=lib/user/appengine-api-1.0-sdk-1.2.0.jar -DgroupId=com.google -DartifactId=appengine-api-sdk -Dversion=1.2.0 -Dpackaging=jar -DgeneratePom=true

Then add the dependency snippet to your POM

<dependency>
<groupId>com.google</groupId>
<artifactId>appengine-api-sdk</artifactId>
<version>1.2.0</version>
<scope>provided</scope>
</dependency>

No comments:

Post a Comment