菜单:Build-Build Artifacts  选择:Build 或者 Rebuild

 

然后再去右侧package

 

备注PACKAGE参数:

spring.profiles.active=prd2

skip test