码迷,mamicode.com
首页 > 其他好文 > 详细

Maven tomcat插件配置和使用

时间:2015-12-08 12:57:14      阅读:139      评论: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>

 

使用:

技术分享

Maven tomcat插件配置和使用

标签:

原文地址:http://www.cnblogs.com/hrhguanli/p/5028714.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!