我正在使用intellij idea、apache tomcat 和 maven 2.2.1,在 pom.xml 中,我们有以下给出的部分
<plugins>
<plugin>
<groupId>org.codehaus.cargo</groupId>
<artifactId>cargo-maven2-plugin</artifactId>
<configuration>
<wait>true</wait>
<container>
<containerId>tomcat6x</containerId>
<zipUrlInstaller>
<url>
http://mirrors.enquira.co.uk/apache/tomcat/tomcat-6/v6.0.35/bin/apache-tomcat-6.0.35.zip
</url>
<installDir>${user.home}/tomcat6</installDir>
</zipUrlInstaller>
<systemProperties>
<responseDirectory>${project.build.directory}/mockresponses</responseDirectory>
</systemProperties>
</container>
<configuration>
<home>${user.home}/apps1-tomcat</home>
<properties>
<cargo.jvmargs>
<![CDATA[-Xdebug -Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n]]></cargo.jvmargs>
</properties>
<deployables>
<deployable>
<groupId>com.pra.apps1a</groupId>
<artifactId>apps1a</artifactId>
<type>war</type>
<properties>
<context>/apps1a</context>
</properties>
</deployable>
<deployable>
<groupId>com.pra.mockserver</groupId>
<artifactId>mockserver-web</artifactId>
<type>war</type>
<properties>
<context>/httpmockserver</context>
</properties>
</deployable>
</deployables>
</configuration>
</configuration>
<executions>
<execution>
<id>start-container</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
当我们运行它时,它会下载 apache tomact 然后创建 apps1-tomcat 文件夹并且应用程序运行正常,但是apps1-tomcat 中没有 bin 文件夹,我们需要在 catalina.bat 中设置 JAVA_OPTS 参数,我们该怎么做直接在pom.xml中创建带有 bin 文件夹的 apps1-tomcat 文件夹以及在 catalina.bat 中设置的 JAVA_OPTS 参数
提前致谢。