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

Maven Build

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.

Do Another Tool

The Result should like the below image.

Result

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







免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM