【问题标题】:How can I run Tomcat with maven:run with my custom configuration file?如何使用 maven 运行 Tomcat:使用我的自定义配置文件运行?
【发布时间】:2011-09-07 00:56:06
【问题描述】:

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

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

【问题讨论】:

  • 对不起,我想写 mvn tomcat:run :)

标签: tomcat configuration maven


【解决方案1】:

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

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

【讨论】:

  • 谢谢,我将我的 tomcat-user.xml 文件放在 src/main/tomcatconf 中并且工作正常 :)
猜你喜欢
  • 2012-02-20
  • 1970-01-01
  • 2011-12-09
  • 1970-01-01
  • 2023-02-01
  • 2019-04-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多