Maven resource and java version fixes