maven打包报错 ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format : or :时间:2023-03-09 15:02:29 打开pom.xml 在build标签中 增加 <defaultGoal>compile</defaultGoal> 如下: <build><defaultGoal>compile</defaultGoal> </build>