Maven 插件 maven-tomcat7-plugin - 常用命令及配置

常用命令

tomcat7:deploy

说明:部署 WAR 到 Tomcat

tomcat7:help

说明:查看插件帮助信息

tomcat7:run

说明:支行当前项目

配置

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.tomcat.maven</groupId>
          <artifactId>tomcat7-maven-plugin</artifactId>
          <version>2.0</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>org.apache.tomcat.maven</groupId>
        <artifactId>tomcat7-maven-plugin</artifactId>
        <version>2.0</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

 

posted @ 2016-02-15 21:06 龙影2008 阅读(...) 评论(...) 编辑 收藏