2011-03-08 58 views

回答

0

查看Cargo Plugin配置的deployables标签。

此配置应该部署您当前的项目和AnotherWAR项目。

<profiles> 
     <profile> 
      <id>integration-test</id> 
      <dependencies> 
       <dependency> 
        <groupId>com.me</groupId> 
        <artifactId>AnotherWAR</artifactId> 
        <version>1.2</version> 
        <type>war</type> 
       </dependency> 
      </dependencies> 
      <build> 
       <plugins> 
        <plugin> 
        <groupId>org.codehaus.cargo</groupId> 
        <artifactId>cargo-maven2-plugin</artifactId> 
        <version>1.2.4</version> 
        <configuration> 
         <deployables> 
          <deployable> 
           <groupId>com.me</groupId> 
           <artifactId>AnotherWAR</artifactId> 
          </deployable> 
         </deployables> 
        </configuration> 
       </plugin> 
       </plugins> 
      </build> 
     </profile> 
    </profiles> 

然后就叫货:与“集成测试”轮廓积极

部署