The MAVEN project error handling method in Eclipse _maven

Source: Internet
Author: User
1.pom files always prompt missing artifact *.jar

Some jar packs that you have clearly downloaded. If the computer restarts or eclipse restarts, the Pom.xml file prompts Missing to artifact a certain jar package.

Go to the local warehouse, look for *.lastupdated, delete all. And right--->maven--> update peoject in this project in eclipse




2. Could not calculate build Plan:plugin org.apache.maven.plugins:maven-resources-plugin:2.6

This problem may be caused by a variety of reasons, I have encountered two of different reasons:

The 1th is because the MAVEN configuration in eclipse is not known when it is changed, it is changed back to the correct one, enter
Window-> Preferences-> Maven-> User Settings-> Select your own settings.xml

The 2nd kind of unknown reason, the following solution can be used:

First step: Delete the Local. M2 Warehouse
All the methods below the Repository\org\apache\maven\plugins directory;

Step Two: Right-click the project in Eclipse
Maven->update project-> Tick Force Update of Snapshots/releases->ok. Depending on the network situation, it may be a bit long.





3.The Superclass
"Javax.servlet.http.HttpServlet" is not found on the Java

Build Path

Is that the current Web project is not configured for Tomcat, before resolving to make sure that the current eclipse has configured Tomcat

, and then right-click->properties->javabuildpath-> libraries-> Addlibrary->server in the project name Runtime Select your Tomcat in this list to

Related Article

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.