pom.xml文件<build>标签后面加上<defaultGoal>compile</defaultGoal>即可 转载于:https://www.cnblogs.com/sprinng/p/5085177.html