maven Tomcat7 xml文件配置

来源:互联网 发布:广州网络推广培训 编辑:程序博客网 时间:2024/05/18 03:47

pom.xml 文件配置


<plugin>  <groupId>org.apache.tomcat.maven</groupId>  <artifactId>tomcat7-maven-plugin</artifactId>  <version>2.2</version>  <configuration>    <url>http://localhost:8080/manager/text</url> <!-- tomcat管理路径 -->    <server>tomcat7</server> <!-- 与settings.xml文件中Server的id相同 -->    <uriEncoding>utf-8</uriEncoding>    <port>8080</port><!--服务器端口号8080可以省去-->    <path>/</path> <!-- 应用的部署位置 -->    <contextReloadable>true</contextReloadable>    <systemProperties>      <java.util.logging.SimpleFormatter.format>[%4$s] %1$tF %1$tT %3$s %5$s %n      </java.util.logging.SimpleFormatter.format>    </systemProperties>  </configuration>  <executions>    <execution>      <id>tomcat-run</id>      <phase>test</phase>      <goals>        <goal>run</goal>      </goals>    </execution>  </executions></plugin>

0 0
原创粉丝点击