从IntelliJ部署maven war文件到tomcat [英] deploy maven war file to tomcat from IntelliJ

查看:153
本文介绍了从IntelliJ部署maven war文件到tomcat的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆