add compiler plugin and encoding to pom
add example project