tomcat7-maven-plugin定制server.xml [英] tomcat7-maven-plugin custom server.xml

查看:344
本文介绍了tomcat7-maven-plugin定制server.xml的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将tomcat7-maven-plugin:run与自定义server.xml一起使用,其中包含我需要启用的Realm.如文档中所述,我已使用<serverXml />指向我的文件.但是,我的应用程序然后没有被加载.插件文档指出,我需要手动为应用程序配置上下文.

I am trying to use the tomcat7-maven-plugin:run with a custom server.xml, which contains a Realm I need to enable. As described in the docs I have used <serverXml /> to point to my file. However, my application does not then get loaded. The plugin docs state that I need to configure the context for my application manually.

我该怎么做?我不确定要为docBase等放置什么.

How do I do this? I am unsure what to put for the docBase etc.

谢谢.

推荐答案

可以检查此示例pom

Can you check this sample pom http://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/test/resources/deploy-war-project/pom.xml

这篇关于tomcat7-maven-plugin定制server.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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