Resolution of Pom.xml Org.apache.maven.plugins error in eclipse

Source: Internet
Author: User

As a love front-end classmate, spend a lot of time to do Java is really helpless ah =. =, this month the school organized a practical training, because there is no front-end related options, had to choose a period of time before the Java, so SPRINGMVC now learn to use, make a joy. Practice has been rejected before, after all, want to find the front-end aspects of the work, not Chengxiang or learned a lot of things, especially on the front and back of the data interaction has a deeper understanding (after all, it is their own interaction, Khan).

Well, the summary of the practice and so on to write, this time to record yesterday in the configuration of Maven go some detours, last night asked the degree Niang and Google have not been able to get too good solution, hoping to give the same problem after students to provide some ideas.

Because the problem has been resolved, unable to find the error message, the mistake is: after the new MAVEN project is created with the version of Eclipse that integrates Maven, the configuration file pom.xml an error at project and the referenced XSD file, showing

"Failure to transfer org.apache.maven.plugins:maven-surefire-plugin:pom2.12.4 from https://repo.maven.apache.org/ Maven2 was cathed in the local repository "

Balabala, in fact, the solution of this problem is very simple, last night just went the wrong direction, has been thinking that Maven has a problem, Replaced several versions (last time by the new version of the Hibernate pit) and even changed the JDK to 1.6, very upset, today, the error message from the eclipse's corner of the Nook to help out a serious look, enlightened, is the Eclipse integrated MAVEN problems (version issues or site access issues), and the new installation Maven was not successfully added to the M2E plug-in

Here's how to fix it:

STEP.1 to download the appropriate version of MAVEN to the appropriate path

STEP.2 Open Eclipse preferences->maven->usersettings change global settings and user settings for the conf/under Maven just downloaded Settings.xml

STEP.3 Eclipse Preferences->maven->installations Click Add to add the Maven folder you just downloaded, then tick the version you downloaded without using your own version

STEP.4 after the above two steps, has successfully downloaded their own version of Maven and Eclipse integration, right click on the item before the error, right-run as->maven clean, then run as->maven install

Hope to help the students who have the same problem, I have to hurry code to escape ~ ~

PS: The above method just integrates Maven into eclipse, if you need to use command line to operate MAVEN, according to the system to configure the environment variables, this online has a lot of information, we look at the good.

Resolution of Pom.xml Org.apache.maven.plugins error in eclipse

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.