Maven tomcat插件 [英] Maven tomcat plugin

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

问题描述

是否可以在tomcat上运行spring mvc应用程序(使用此插件 http://mojo .codehaus.org/tomcat-maven-plugin/)(如果是),应用程序日志和部署Web应用程序目录位于何处?

is it possible to run spring mvc application on tomcat(with this plugin http://mojo.codehaus.org/tomcat-maven-plugin/) if yes, where is the application log and deploy web app directory located ?

让我改一下这个问题.我正在要求某种方式从命令行启动我的Web应用程序(Spring MVC应用程序),无论是使用Maven还是使用创建Web服务器的应用程序内部的某种方式.

Let me rephrase the question. I'm asking for some way to start my web app(spring mvc application) from a command line, either with maven or with something inside application that creates web server.

您会推荐什么?我在谷歌搜索时发现了这个tomcat maven插件,没有特殊的理由使用它

What would you recommend? I found this tomcat maven plugin while googling, no special reason to use it

当前我为此应用程序使用jboss服务器,但是我想同时从应用程序中运行服务器和应用程序,有什么建议吗?

Currently I use jboss server for this application, but I want to run both server and application from application,any suggestions?

推荐答案

tomcat:run在嵌入式tomcat实例中运行Web应用程序...对于在开发过程中进行测试非常有用.
参见 http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html 用于列出运行目标的配置参数,包括warSourceDirectory,如果未指定,则默认为${basedir}/src/main/webapp

tomcat:run runs a web application in an embedded tomcat instance ... useful for testing during development.
See http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html for listing of config parameters for the run goal, including warSourceDirectory which, if not specified defaults to ${basedir}/src/main/webapp

这篇关于Maven tomcat插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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