Fixed generic compiler errors with maven plugin.