Idea 使用maven+tomcat的时候,编译指定的Profile

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

Idea 使用maven+tomcat的时候,编译指定的Profile

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.

Idea 使用maven+tomcat的时候,编译指定的Profile

The Result should like the below image.

Idea 使用maven+tomcat的时候,编译指定的Profile

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

上一篇:【mysql】关于子查询的一个例子


下一篇:C#的变迁史 - C# 2.0篇