Eclipse EE (Luna) is unable to create a MAVEN project

Source: Internet
Author: User

Problem Description:

Create a Web project using the Eclipse's own maven plugin error:

could not resolve archetype Org.apache.maven.archetypes:maven-archetype-webapp: RELEASE from any of the configured repositories.
Could not resolve artifact Org.apache.maven.archetypes:maven-archetype-webapp:pom:release
Failed to resolve Version for org.apache.maven.archetypes:maven-archetype-webapp:pom:release:could not find metadata Org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\liujunguang\.m2\ Repository)
Failed to resolve version for Org.apache.maven.archetypes:maven-archetype-webapp:pom:release:could Not find metadata org.apache.maven.archetypes:maven-archetype-webapp/maven-metadata.xml in local (C:\Users\ liujunguang\.m2\repository)

Error




Solution:

Add a new catalog configuration in the Eclipse MAVEN configuration:

    • Http://repo1.maven.org/maven2/archetype-catalog.xml





Next, create a Web project with the catalog you just added

At this point, you can see the Eclipse Internet download:


This time to see if the creation was successful.


If you are still unable to create or if the problem is not resolved, you can install the following method:

1. Delete the file path that Maven has downloaded:. m2\repository\org\apache\maven

Delete and then try again, this time if you see progress, only need to wait patiently on the line


Eclipse EE (Luna) is unable to create a MAVEN project

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.