Eclipse 中应用 maven 构建 java 工程

POM.XML
<!-- 制定属性 -->>
  <properties>
          <juint.version>3.8.1</juint.version>
          <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
          <jdk.version>1.8.0_40</jdk.version>
  </properties>
  <build>
      <plugins>
          <!-- 制定JDK编译版本 -->
          <plugin>     //此处出现错误
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>3.3.3</version>
              <configuration>
                  <source>${jdk.version}</source>
                  <target>${jdk.version}</target>
                  <showWarnings>true</showWarnings>
              </configuration>            
          </plugin>
      </plugins>
  </build>>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>${junit.version}</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
</project>


错误提示:
Multiple annotations found at this line:
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-
compiler-plugin:3.3.3:compile (execution: default-compile, phase: compile)
- Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-
compiler-plugin:3.3.3:testCompile (execution: default-testCompile, phase: test-compile)
- CoreException: Could not calculate build plan: Plugin org.apache.maven.plugins:maven-
compiler-plugin:3.3.3 or one of its dependencies could not be resolved: Failure to find
org.apache.maven.plugins:maven-compiler-plugin:jar:3.3.3 in http://repo.maven.apache.org/maven2
was cached in the local repository, resolution will not be reattempted until the update interval of
central has elapsed or updates are forced


↙↙↙阅读原文可查看相关链接,并与作者交流