add build instructions and pom.xml for maven

add build instructions and pom.xml for maven