After the computer restarts do not know why the eclipse in the MAVEN can not be used, the Pom file has been marked red, reported the following error:
Execution default-cli of goal org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources Failed:a required Class was missing while executing org.apache.maven.plugins:maven-resources-plugin:2.5:copy-resources:org/apache/ Maven/shared/filtering/mavenfilteringexception-----------------------------------------------------
Realm = plugin>org.apache.maven.plugins:maven-resources-plugin:2.5
Strategy = Org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
Urls[0] = file:/c:/users/admin/.m2/repository/org/apache/maven/plugins/maven-resources-plugin/2.5/ Maven-resources-plugin-2.5.jar
URLS[1] = File:/c:/users/admin/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
Number of foreign imports:1
Import:entry[import from Realm Classrealm[maven.api, Parent:null]]
But under the. M2 Maven plugin: Maven-resources-plugin does exist, and the version number is really 2.5
Workaround, add the following in the Pom file:
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<encoding>utf-8</encoding>
</configuration>
</plugin>
</plugins>
Specific reasons to check again later.