1.在项目的pom.xml 加入<packaging>jar</packaging> 2.进入 Run/Debug Configurations 页面 3.选择maven 4.选择打包路径,以及输入maven打包命令 5.保存 ok 相关文章: