1、点击idea左边的Maven
2、点开要打包的项目下的-->Lifecycle-->双击package
3、jar包会默认保存在项目下的target文件夹下
IDEA打包jar包
原文:https://www.cnblogs.com/zqyw/p/10172465.html