Add pom.xml to allow Maven compile of Java examples.