生命周期配置未涵盖插件执行

Noo*_*tor 3 spring spring-mvc pom.xml maven eclipse-kepler

春天的开始

背景:到目前为止,我一直在研究核心 JAVA,现在我需要切换到 MVC
尝试从本教程制作我的第一个 Spring MVC Hello World 示例 ,我遇到以下错误: pom.xml

Multiple annotations found at this line:
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
     2.3.2:compile (execution: default-compile, phase: compile)
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:
     2.5:testResources (execution: default-testResources, phase: process-test-resources)
    - <packaging>war</packaging>
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-resources-plugin:
     2.5:resources (execution: default-resources, phase: process-resources)
    - Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:
     2.3.2:testCompile (execution: default-testCompile, phase: test-compile)
Run Code Online (Sandbox Code Playgroud)

在 pom.xml 的这一行上产生了错误:

  <packaging>war</packaging>
Run Code Online (Sandbox Code Playgroud)

pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.javacodegeeks.snippets.enterprise</groupId>
      <artifactId>springexample</artifactId>
      <packaging>war</packaging>
      <version>0.0.1-SNAPSHOT</version>
      <name>springexample Maven Webapp</name>
      <url>http://maven.apache.org</url>
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>3.8.1</version>
          <scope>test</scope>
        </dependency>

        <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-core</artifactId>
                <version>${spring.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-webmvc</artifactId>
                <version>${spring.version}</version>
            </dependency>
      </dependencies>
      <build>
        <finalName>springexample</finalName>
      </build>

        <properties>
            <spring.version>4.0.2.RELEASE</spring.version>
        </properties>
</project>
Run Code Online (Sandbox Code Playgroud)

我什至m2e市场上搜索后安装

请放轻松,这个问题是为了尝试学习对我来说全新的东西。
我需要一些插件或其他东西来解决这个问题吗?如果是这样,是否有任何通用的插件可以避免将来出现任何此类错误?
IDE : Eclipse 开普勒

附注:

我已经浏览过旧线程但没有运气:

Die*_*o V 5

这不是停止使用 m2e 的理由,您可以通过简单地右键单击它们并使用快速修复命令来修复这些错误。您可以选择在 Marketplace 中搜索可用的生命周期配置器以自动处理它,或者,如果没有,您可以告诉 m2e 忽略该插件。