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