Fix maven pom warnings and compiler warnings.