The following error occurred today in a new Web project:
Failed to read artifact descriptor for Org.apache.maven.plugins:maven-resources-plugin
Eclipse's error tips are as follows:
Could not calculate builds Plan:plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies Coul D is resolved:failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not being resolved:failed to Rea D Artifact Descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
At first I thought it was a version problem, because I saw that there was maven in Eclipse, and I installed Maven on my own system, so I changed the Maven home setting in Ecplise, and the bug was still there.
In Baidu search a bit (old, except you do not want to find, it is difficult to find the technical information you want to find, pure grumble ~ haha);
Baidu found the information:
1, may be the network by the wall, set the mirror;
2, you can try to download maven-resources-plugin;
After trying 1, did not solve the problem (even inadvertently increased the problem, this blame myself not careful enough, may be copied in the mirror configuration has illegal characters), 2, I have a version of the old point, the problem remains;
The problem solves the scene to be somewhat not to have the intention (in fact many problems originally solves the scene to be not intended, hoho~), I directly in the command line dozen MVN compile, prompted with Eclipse not the same error:
[ERROR] Error executing Maven.
[ERROR] 1 problem is encountered while building the effective settings
[FATAL] Non-parseable settings/usr/share/maven/conf/settings.xml:in Comment After two dashes (-) next character must be > no T (Position:start_tag seen <!--... @164:17) @/usr/share/maven/conf/settings.xml, line 164, column 17
The error above is because I added a image of Maven, which was a configuration item that was copied directly to the network (but it was actually commented out)
Once you've deleted it, compile again, and there's no problem in the command line, go back to eclipse, refresh the project, and continue to report the same error!!!!!
Here you can identify the eclipse part of the problem, review the eclipse's Maven configuration, and find that no global configuration is specified (all of the previously configured mirrors are in the global configuration file), immediately specify the configuration Preferences–>maven–>user Settings–>global Settings, assigned to my profile:/usr/share/maven/conf/settings.xml, save configuration, refresh items, prompts download Maven's Dongdong, to this problem really solved ~ ~ ~
The Oschina maven image configuration found on the Internet (I didn't use it, I tried it, speed: a fraction k/s):
<!----This is a global mirror, remember to put it in the mirrors position-->
<mirror>
<id>nexus-osc</id>
<mirrorOf>*</mirrorOf>
<name>nexus osc</name>
<url>http://maven.oschina.net/content/groups/public/</url>
</mirror>
<!--This is a plugin, remember to put it in the plug-in configuration location--->
<profile>
<id>jdk-1.4</id>
<activation>
<jdk>1.4</jdk>
</activation>
<repositories>
<repository>
<id>nexus</id>
<name>local Private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>nexus</id>
<name>local Private nexus</name>
<url>http://maven.oschina.net/content/groups/public/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</profile>
MAVEN Project established Pom.xml report cannot resolve org.apache.maven.plugins:maven-resources-plugin:2.4.3
First, the discovery of problems
After the MAVEN project is established, Pom.xml displays the Red fork and mouse over it, showing execution default-testresources of goal Org.apache.maven.plugins: maven-resources-plugin:2.4.3 error.
Two, cause analysis
is missing Maven-resources-plugin-2.4.3.jar or the file is not downloaded correctly, you can go to the repository\org\apache\maven\plugins\ Maven-resources-plugin\ directory to see if the download is correct. or delete the file to download again.
Third, workaround
Step one:
Pom.xml file join
<dependency>
<groupId> Org.apache.maven.plugins</groupid>
<artifactid>maven-resources-plugin</ Artifactid>
<version>2.4.3</version>
</dependency>
Step two: Run as- > Maven Install download can be