Set encoding when copying resources, and cleaned up pom file