Fix build failures when running mvn from the command line