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.