Maven Error: Could not resolve archetype Org.apache.maven.archetypes:maven-archetype-webapp

Source: Internet
Author: User

Depressed for two days, when creating a MAVEN project, eclipse Error: Could not resolve artifact Org.apache.maven.archetypes:maven-archetype-webapp, details such as:

The causes of such errors are divided into the following two types:

1, Catalog related types are missing;

2. The IDE failed to download the relevant jar package completely.

The solutions for both of these reasons are as follows:

1. Configure Catalog

In Eclipse, click Window-->preferences-->maven-->archetype, click "Add Remote Catalog" in the Archetype page, in the pop-up box, catalog Fill in the File input box "Http://repo1.maven.org/maven2/archetype-catalog.xml" (quotation marks do not), the following description fill in according to their own preferences. Then, when you create the MAVEN project again, select the new catalog that you just created, and then choose Org.apache.maven.archetypes Maven-archetype-webapp;

2. Re-download Maven-archetype-webapp-1.0.jar

If the above method does not solve the problem, then re-download Maven-archetype-webapp-1.0.jar. Method: Go to Maven local warehouse Org\apache\maven\archetypes\maven-archetype-webapp\ 1.0 directory deletes the. lastupdate file, and when the Web project is created again, the IDE automatically downloads the associated jar package.

Maven Error: Could not resolve archetype Org.apache.maven.archetypes:maven-archetype-webapp

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.