Make api 8 compatible.
Added maven pom.xml.