Eclipse does not have a project prototype or template created by Maven failed

Source: Internet
Author: User

The first of these methods

Could not resolve archetype Org.apache.maven.archetypes:maven-archetype-quic

?

When you install theM2eclipseafter that, you can go through the menu "File"-"New"-"Project ...", select one of theMaven-maven Project, according toMavenEngineering Prototypes or templates providedarchetypeto build a simple project framework.

1)

This method is not recommended , because Eclipse need to load online

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

2)

Recommend this way, first download to local, relatively fast

View http://repo1.maven.org/maven2/by browser to find the name Archetype-catalog.xml download to local

or download directly Http://files.cnblogs.com/files/zhaozhenqiang/archetype-catalog.xml

?

If you continue to make an error please check the maven setting.xml file, which should contain the following

3)

When you create maven This kind of anomaly sometimes occurs during engineering .

There are many solutions on the Internet, but each case is not the same, I tried several methods, no effect, if already have maven project, my operation is to change a Workspace working space is OK the

?

, three switch to which one can, the premise when switching to the workspace is not maven Engineering.

then create in this working range maven Web Project, if you do not want to use the new workspace, then switch directly to the original workspace, click Import Import into your usual working range OK up.

?

?

The second method of

Could not resolve archetype Org.apache.maven.archetypes:maven-archetype-quickstart

was previously created by command line, today with Eclipse installed M2eclipse When you finish the project when you create an error:

?? Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:release from any of the configured Repositories.

??

How to resolve:

?? 1. from http://maven.oschina.net/content/groups/public/org/apache/maven/archetypes/ maven-archetype-quickstart/?? Download the latest version Maven-archetype-quickstart-1.1.jar
?? 2. command line to download directory execution MVN Install:install-file-dgroupid=org.apache.maven.archetypes-dartifactid=maven-archetype-quickstart- Dversion=1.1?-dpackaging=jar-dfile=maven-archetype-quickstart-1.1.jar

Eclipse does not have a project prototype or template created by Maven failed

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.