配置maven插件Tomcat,打开maven工具栏不显示插件如Tomcat7:run

1. 正确配置pom文件(注意下面xml两个注释)

  <build>
    <finalName>marketfinalName>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-clean-pluginartifactId>
          <version>3.1.0version>
        plugin>
        <plugin>
          <groupId>org.apache.tomcat.mavengroupId>
          <artifactId>tomcat7-maven-pluginartifactId>
          <version>2.2version>
          <configuration>
              <path>/path>
          configuration>
        plugin>
      plugins>
    pluginManagement>
    <plugins>
      <plugin>
        <artifactId>maven-clean-pluginartifactId>
        <version>3.1.0version>
      plugin>
      <plugin>
        <groupId>org.apache.tomcat.mavengroupId>
        <artifactId>tomcat7-maven-pluginartifactId>
        <version>2.2version>
        <configuration>
          <path>/path>
        configuration>
      plugin>
    plugins>
  build>

2. 点击刷新(重新导入maven)

3. tomcat插件会出现在maven的plugins目录下

4. 如果配置快速启功,参考 推荐博客

你可能感兴趣的:(配置maven插件Tomcat,打开maven工具栏不显示插件如Tomcat7:run)