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

故事扮演 提交于 2019-12-09 06:04:18

问题


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 profiles, in order to build the system for Development, Preview and Production environments.

Any Thoughts?


回答1:


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.



来源:https://stackoverflow.com/questions/25979738/running-tomcat-server-with-an-artifact-created-by-maven-into-intellij-13

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!