首页 > 其他 > 详细

Maven tomcat插件配置及使用

时间:2014-08-07 13:25:50      阅读:305      评论:0      收藏:0      [点我收藏+]

pom.xml配置 

<build>
  <plugins>
        <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>tomcat-maven-plugin</artifactId>
                 <version>1.1</version>
                 <configuration>
                     <path>/cxx</path>
                     <port>8989</port>
                     <uriEncoding>UTF-8</uriEncoding>
                     <url>http://localhost:8989/manager/html</url>
                     <server>tomcat6</server>
                 </configuration>
             </plugin>
     </plugins>
  <finalName>cxx</finalName>
  <resources>
   <resource>
    <directory>src/main/java</directory>
    <includes>
     <include>**/*.xml</include>
     <include>**/*.sql</include>
     <include>**/*.ftl</include>
    </includes>
    <filtering>false</filtering>
   </resource>
   <resource>
    <directory>src/main/resources</directory>
   </resource>
  </resources>

  <testResources>
   <testResource>
    <directory>src/test/java</directory>
    <includes>
     <include>**/*.xml</include>
     <include>**/*.sql</include>
     <include>**/*.ftl</include>
    </includes>
    <filtering>false</filtering>
   </testResource>
   <testResource>
    <directory>src/test/resources</directory>
   </testResource>
  </testResources>
 </build>

 

使用:

bubuko.com,布布扣

Maven tomcat插件配置及使用,布布扣,bubuko.com

Maven tomcat插件配置及使用

原文:http://blog.csdn.net/cxx504659987/article/details/38413497

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