IDEA打包Maven项目

 

方法一:使用IDEA集成按钮实现打包

打开项目右侧的 maven窗口:

IDEA打包Maven项目【我】_自定义

 

 进行如下配置:

IDEA打包Maven项目【我】_ide_02

 

IDEA打包Maven项目【我】_ide_03

 

方法二:添加maven命令来执行打包

 IDEA打包Maven项目【我】_maven项目_04

 

 

 依次点上面两个按钮,

IDEA打包Maven项目【我】_maven项目_05

 

点上面加号按钮,

IDEA打包Maven项目【我】_maven_06

 

 选maven,

IDEA打包Maven项目【我】_maven_07

 

 输入maven命令  package -Dmaven.test.skip=true

IDEA打包Maven项目【我】_maven_08

 

 应用、ok

IDEA打包Maven项目【我】_maven项目_09

 

 这样在最近使用运行栏中就有我们自定义的打包命令db了,要使用的时候,选它,

IDEA打包Maven项目【我】_ide_10

 

然后点后面的执行按钮就可以了。