IDEA在Maven webapp项目中打jar包

1、打开项目设置

IDEA在Maven webapp项目中打jar包

2、添加Artifacts

IDEA在Maven webapp项目中打jar包

3、修改jar包名,以及导入相关依赖包

IDEA在Maven webapp项目中打jar包

IDEA在Maven webapp项目中打jar包

 4、双击导入这两个文件

IDEA在Maven webapp项目中打jar包

5、设置主类

IDEA在Maven webapp项目中打jar包

 6、build jar包

IDEA在Maven webapp项目中打jar包

IDEA在Maven webapp项目中打jar包

7、完成

IDEA在Maven webapp项目中打jar包