Failure to transfer org.apache.maven.plugins: maven-resources-plugin: pom: 2.6 solutions

Engineering News eclipse import mavn Failure to transfer org.apache.maven.plugins: maven-resources-plugin: pom: 2.6 solution:

 

Error message appears on the label pom head of the project, project label items

<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/xsd/maven-4.0

 

 

the reason

This is due to the lack maven-resources-plugin-2.6.jar file. This file is in the {user.home} \. M2 \ repository \ org \ apache \ maven \ plugins \ maven-resources-plugin \ next. {User.home} maven path is arranged, generally My Documents, is window-preferences-MyEclipse-Maven4MyEclipse-User Setting inside Local Repository.

solution

1, was added maven-resources-plugin configuration file in the pom.xml

<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
</dependency>

 

2, at the command line to run mvn install , if executed properly should be in {user.home} \. M2 \ repository \ org \ apache \ maven \ plugins \ see maven-resources-plugin-2.6 maven -resources-plugin \ under. jar file

3, refresh maven configuration, right-project node, choose maven >>> updateProject

Guess you like

Origin www.cnblogs.com/wjx6270/p/11617717.html