从IntelliJ部署maven war文件到tomcat [英] deploy maven war file to tomcat from IntelliJ
问题描述
我有一个maven战争项目。如何在IntelliJ IDEA中执行以下操作:
I have a maven war project. How can I do do the following from within IntelliJ IDEA:
- 创建.war文件
- 部署它到本地Tomcat
- 在调试模式下启动Tomcat
推荐答案
你需要配置 maven-war-plugin
来建立你的战争。 tomcat< x> -maven-plugin
将允许您将其部署到tomcat实例,并且实际上也可以进行战争生成 - 我在我目前的办公室使用JBoss所以避风港有使用maven tomcat集成的经验。
You need to configure maven-war-plugin
to build your war. tomcat<x>-maven-plugin
will allow you to deploy it to a tomcat instance and may in fact do the war generation too - I use JBoss at my current office so haven't got any experience with the maven tomcat integration.
参见 http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/ 和 http://maven.apache.org/plugins/maven-war-plugin/ 有关这两个插件的更多详细信息。
see http://tomcat.apache.org/maven-plugin-2.0-SNAPSHOT/ and http://maven.apache.org/plugins/maven-war-plugin/ for some more details on both of these plugins.
这篇关于从IntelliJ部署maven war文件到tomcat的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!