A maven error: org/apache/maven/shared/filtering/mavenfilteringexception

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.