MAVEN build project too slow solution, and error retrieving archetypes: ' has encountered a problem

Source: Internet
Author: User

If the error message is as follows:

Retrieving archetypes: ' has encountered a problem
An internal error occurred during: "Retrieving archetypes

Details
An internal error occurred during: "Retrieving Archetypes:".
Java Heap Space




Reason:

Apache maven is a very popular project building and management tool today, freeing developers from complex project dependencies and fully automating the management of dependency issues. During Web application development, we typically use MAVEN's archetype plug-in to build the project framework, which is very slow when building a project skeleton with MAVEN, whether it is used directly on the command line or in the IDE.

To understand why, you need to know how MAVEN works. During the build process, we just provided Maven with some groupid, Artifactid, Archetypeartifactid, and so on, with only this information in the case where Maven was building the entire project. Where does its knowledge come from? The answer is:

[HTML] view plain copy http://repo1.maven.org/maven2/archetype-catalog.xml here, all archetype build information, Maven accesses the page remotely when building the project skeleton through the archetype plugin, which can be demonstrated through MAVEN's-x parameter.

Solution:

1. Through the browser view http://repo1.maven.org/maven2/archetype-catalog.xml page source code, copied to the local, named Archetype-catalog.xml

2. Add to MyEclipse, as shown in figure


Final effect


The speed is fast, above only provides the reference, hoped can help to the need friend, the Archetype-catalog.xml also may through I give this link address http://download.csdn.net/detail/semial/9713366 to carry on the download.

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.