Java Maven Cargo Tomcat7服务器.xml被过度写入
我正试图让我们的集成测试与maven一起运行。它将catalina base部署到正确的目录,并将catelina home set作为Tomcat7的本地安装运行 但是,copy/configfile命令不适用于server.xml。正在正确复制tomcat-users.xml,但没有复制server.xml。你知道为什么会这样吗? 请参见下面的pom.xml:Java Maven Cargo Tomcat7服务器.xml被过度写入,java,jakarta-ee,tomcat7,maven-3,maven-cargo,Java,Jakarta Ee,Tomcat7,Maven 3,Maven Cargo,我正试图让我们的集成测试与maven一起运行。它将catalina base部署到正确的目录,并将catelina home set作为Tomcat7的本地安装运行 但是,copy/configfile命令不适用于server.xml。正在正确复制tomcat-users.xml,但没有复制server.xml。你知道为什么会这样吗? 请参见下面的pom.xml: <plugin> <groupId>org.codehaus.cargo</g
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<deployables>
<deployable>
<groupId>${project.groupId}</groupId>
<artifactId>${project.artifactId}</artifactId>
<type>war</type>
</deployable>
</deployables>
<container>
<containerId>tomcat7x</containerId>
<home>${catalina-home}</home>
<type>installed</type>
</container>
<configuration>
<home>${project.build.directory}/catalina-base</home>
<type>standalone</type>
<files>
<copy>
<configfile>true</configfile>
<file>server.xml</file>
<tofile>conf/server.xml</tofile>
<overwrite>true</overwrite>
</copy>
<copy>
<configfile>true</configfile>
<file>tomcat-users.xml</file>
<tofile>conf/tomcat-users.xml</tofile>
<overwrite>true</overwrite>
</copy>
</files>
</configuration>
</configuration>
<executions>
<execution>
<id>tomcat-run</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>tomcat-shutdown</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
org.codehaus.cargo
cargo-maven2-plugin
${project.groupId}
${project.artifactId}
战争
tomcat7x
${catalina home}
安装
${project.build.directory}/catalina base
独立的
真的
server.xml
conf/server.xml
真的
真的
tomcat-users.xml
conf/tomcat-users.xml
真的
雄猫赛跑
预集成测试
开始
tomcat关机
整合后测试
停止
我遇到了一个类似的问题。我用了
而不是
,这就成功了
请参阅:我遇到了一个类似的问题。我用了
而不是
,这就成功了
见: