IntelliJ IDEA使用maven debug模式打包

时间:2024-03-21 16:49:09

类似eclipse的Debug as maven build。具体操作步骤如下:

  1. 点击Edit ConfigurationsIntelliJ IDEA使用maven debug模式打包
  2. 点击左上角的加号,添加maven配置。
    IntelliJ IDEA使用maven debug模式打包
  3. 填写相关配置。
    在Command line就是你配置完后启动这个configuration的时候maven会执行的命令。在这里我填了clean package,maven会执行clean然后再打包。配置完后保存。IntelliJ IDEA使用maven debug模式打包
  4. debug模式运行刚才添加的maven debug
    IntelliJ IDEA使用maven debug模式打包