fix a bug when running mvn install