maven打包报错 ERROR: No goals have been specified for this build. You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id

打开pom.xml 在build标签中 增加

<defaultGoal>compile</defaultGoal>

如下:
<build>
<defaultGoal>compile</defaultGoal>


</build>

猜你喜欢

转载自www.cnblogs.com/sanduweiliangxtx/p/9946071.html