我在网上找了很多~但都没有完整的pom.xml~
都只有这一部分~另外我为了方便调试直接在run中写了类似tomcat:run的语句~
这样在没有整合tc的时候我可以直接启动tomcat~但现在加入了tc~不知道如何去写~
请有经验的人帮忙~
Code:
<!-- Tomcat 6 profile -->
<profile>
<id>tomcat6x</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>tc-maven-plugin</artifactId>
<version>${tc-maven.version}</version>
<groupId>org.terracotta.maven.plugins</groupId>
<configuration>
<processes>
<process jvmargs="-Duse.async.processing=false" nodeName="cargo" count="2">
<container>
<containerId>tomcat6x</containerId>
<zipUrlInstaller>
<url>http://www.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/apache-tomcat-6.0.18.zip</url>
<installDir>${user.home}/cargo/tomcat6x</installDir>
</zipUrlInstaller>
</container>
</process>
</processes>
</configuration>
</plugin>
</plugins>
</build>
</profile>