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

一段tomcat的maven插件配置

时间:2016-01-27 22:45:25      阅读:214      评论:0      收藏:0      [点我收藏+]

标签:

<plugin>
    <groupId>org.apache.tomcat.maven</groupId>
    <artifactId>tomcat7-maven-plugin</artifactId>
    <version>2.2</version>
    <configuration>
        <path>/</path>
        <!--和tomcat服务器通信时使用的url编码字符集-->
        <charset>UTF-8</charset>
        <uriEncoding>UTF-8</uriEncoding>
        <!--<port>80</port>-->
        <url>http://localhost:8080/manager/text</url>
        <username>manager</username>
        <password>tomcat</password>
        <update>true</update>
    </configuration>
</plugin>

指定了URL上字符编码格式, 服务端口; 部署用的用户名和密码(script manager)。

会根据文件修改更新服务器。

一段tomcat的maven插件配置

标签:

原文地址:http://www.cnblogs.com/silvestris/p/5164610.html

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