tomcat - 如何使用 maven :run with my custom configuration file? 运行 Tomcat

标签 tomcat configuration maven

我想通过 mvn tomcat:run 运行我的 Tomcat 项目

我可以将 tomcat-user.xml 放在哪个路径中以动态加载它?

最佳答案

使用 tomcat-maven-plugin,它有配置。

参见 http://mojo.codehaus.org/tomcat-maven-plugin/run-mojo.html#additionalConfigFilesDir .

关于tomcat - 如何使用 maven :run with my custom configuration file? 运行 Tomcat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6214227/

相关文章:

Intellij IDEA 13.1 Java编译错误

tomcat - Systemd tomcat.service 失败但没有错误

java - JAX-RS 在自动 POJO 映射之前处理异常

java - Hystrix 忽略运行超时

Apache 忽略文档根目录

maven - java.lang.IllegalStateException :Could not find backup for factory javax. faces.context.FacesContextFactory

java - 无法下载Maven依赖项: Remote host closed connection during handshake

tomcat - 在测试设置中使用 Tomcat JNDIRealm/Active Directory 的问题

web-applications - 如何在不传递 ServletContext 对象的情况下检索应用程序参数?

apache - 除了创建符号链接(symbolic link)之外,a2ensite 还能做什么?