[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
求助~如何整合terracotta maven plugin 与 tomcat maven plugin~  XML
Forum Index -> Terracotta 中文社区
Author Message
howell

neo

Joined: 10/24/2009 22:57:21
Messages: 6
Offline

我在网上找了很多~但都没有完整的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>
 
lima

consul
[Avatar]
Joined: 06/22/2009 10:12:31
Messages: 361
Offline

Maven我也不熟。我找人问问看。
你要是有答案了,麻烦你post过来分享一下。

谢谢!
 
Forum Index -> Terracotta 中文社区
Go to:   
Powered by JForum 2.1.7 © JForum Team