Wednesday, 1 September 2010

Add RestFB jars to maven

First download the restfb api and run the following maven command from the extracted dir.

mvn install:install-file -Dfile=restfb-1.5.3.jar 
-DgroupId=com.restfb -DartifactId=restfb -Dversion=1.5.3 -Dpackaging=jar -DgeneratePom=true

this installs the jar in your local mvn repo, and then add the following dependency to your pom


  com.restfb
  restfb
  1.5.3

Monday, 23 August 2010

Google AppEngine 1.3.6 AND Maven

Install Google AppEngine 1.3.6 locally and then then use the following commands to register the various jars in your local maven repo.

mvn install:install-file -Dfile=lib/appengine-tools-api.jar -DgroupId=com.google -DartifactId=appengine-tools -Dversion=1.3.6 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=lib/shared/appengine-local-runtime-shared.jar -DgroupId=com.google -DartifactId=appengine-local-runtime-shared -Dversion=1.3.6 -Dpackaging=jar -DgeneratePom=true

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

mvn install:install-file -Dfile=lib/user/orm/datanucleus-appengine-1.0.7.final.jar -DgroupId=org.datanucleus -DartifactId=datanucleus-appengine -Dversion=1.0.7.final -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=lib/shared/appengine-local-runtime-shared.jar -DgroupId=com.google -DartifactId=appengine-local-runtime-shared -Dversion=1.3.6 -Dpackaging=jar -DgeneratePom=true

mvn install:install-file -Dfile=lib/shared/jsp/repackaged-appengine-commons-logging-1.1.1.jar -DgroupId=com.google -DartifactId=repackaged-commons-logging -Dversion=1.1.1 -Dpackaging=jar -DgeneratePom=true

This is summary of posts from

http://twelves.blogspot.com/2009/04/google-appengine-maven-pom.html

http://shal.in/post/285908979/google-app-engine-and-maven

Wednesday, 28 July 2010

Flickj API Examples

Use google code search to find current sample code.

http://www.google.com/codesearch?q=file:java+%22com.aetrion.flickr.Flickr%22&hl=en&btnG=Search+Code

Adding Flickrj 1.2 to maven

First download Flickrj and install locacally.

run this command from the install dir

mvn install:install-file 
-Dfile=flickrapi-1.2.jar 
-DgroupId=com.aetrion.flickr 
-DartifactId=flickrapi 
-Dversion=1.2 
-Dpackaging=jar

to reference the artifact in your pom add


com.aetrion.flickr
flickrapi
1.2

Thursday, 3 June 2010

ANT - List all images with regex pattern

 



















${prop.dist.contents}

Sunday, 2 May 2010

Stockholm Medal


Thursday, 29 April 2010

ZFDataGrid table width?