Running Tomcat Server with an artifact created by Maven into IntelliJ 13

前端 未结 1 835
感情败类
感情败类 2021-02-06 05:13

It it is possible generate an artifact with maven before a Tomcat Server Run/Debug Configuration of IntelliJ 13?

I have tried to do something like this, using Maven prof

相关标签:
1条回答
  • 2021-02-06 05:49

    To build a artifact with a profile you have to create a Maven Run/Debug configuration as in the following image

    Then In Tomcat Run/Debug Configuration add above build in 'Before Launch' section by clicking the '+' button and select 'Run Another Configuration' then select the maven build.

    The Result should like the below image.

    Now if you run Tomcat configuration first the maven build will be executed before Tomcat.

    0 讨论(0)
提交回复
热议问题