首页 > 其他 > 详细

maven 工程聚合插件

时间:2016-12-30 16:57:58      阅读:206      评论:0      收藏:0      [点我收藏+]
    <!-- war包生成插件 -->
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.4</version>
            <configuration>
                <warSourceDirectory>src/main/webapp</warSourceDirectory>
            </configuration>
        </plugin>
        <!-- tomcat运行插件 -->
        <plugin>
             <groupId>org.codehaus.cargo</groupId>
             <artifactId>cargo-maven2-plugin</artifactId>
               <version>1.2.3</version>
               <configuration>
                   <container>
                       <containerId>tomcat7x</containerId>
                       <home>e:\apache-tomcat-7.0.47</home>
                   </container>
                   <configuration>
                       <type>existing</type>
                       <home>e:\apache-tomcat-7.0.47</home>
                   </configuration>
               </configuration>
               <executions>  
                 <execution>  
                     <id>cargo-run</id>  
                     <phase>install</phase>  
                     <goals>  
                         <goal>run</goal>  
                     </goals>  
                 </execution>  
             </executions>
         </plugin>

 

maven 工程聚合插件

原文:http://www.cnblogs.com/zyh1994/p/6237109.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!