首页 > 代码库 > 运行Maven是报错:No goals have been specified for this build

运行Maven是报错:No goals have been specified for this build

pom.xml文件<build>标签后面加上<defaultGoal>compile</defaultGoal>即可

 

 <build> <defaultGoal>compile</defaultGoal> </build>

 

运行Maven是报错:No goals have been specified for this build