Solve the Could not resolve archetype org.apache.maven.archetypes error when maven creates a web project

The error message is as follows:


Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories.

 Analyze why:


After the Eclipse upgrade was unsuccessful, a new version was reinstalled in a fit of rage. The Eclipse version before Maven was used without problems. So it should be the corresponding JAR package error, or there is no corresponding JAR package. I will "org.apache.maven. Delete all the JAR packages in the "archetypes" directory, and then recreate the project without reporting an error.


refer to:

Guess you like