如何在Idea中的tomcat运行配置中设置context.xml

Nep*_*daj 5 intellij-idea tomcat7

我正在尝试为本地开发部署一个战争文件,我想修改 tomcat 的 context.xml 以通过 jndi 提供数据源。这在使用时有效tomcat7-maven-plugin

        <plugin>
            <groupId>org.apache.tomcat.maven</groupId>
            <artifactId>tomcat7-maven-plugin</artifactId>
            <version>2.2</version>
            <configuration>
                <contextFile>../../tomcat-test-context.xml</contextFile>
            </configuration>
        </plugin>
Run Code Online (Sandbox Code Playgroud)

问题是,tomcat7-maven-plugin 不适用于我在项目中使用的叠加层,所以我必须使用另一种方法。我可以在 intellij idea 中部署战争工件,但我没有看到任何选项可以像在 tomcat7-maven-plugin 中那样指定 contextFile。在intellij idea tomcat配置中是否有一些选项可以做类似的事情?

当然我可以修改context.xmlcatalina home下的,但是我希望每个项目都配置它,不想有很多tomcat。

该应用程序部署在生产中的 weblogic 上,我仅在本地使用 tomcat 进行测试。