我想通过 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/