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 other information, and how does maven build the whole project with this information? Where does its knowledge come from? The answer is:
Http://repo1.maven.org/maven2/archetype-catalog.xml
- Http://repo1.maven.org/maven2/archetype-catalog.xml
Here, all archetype build information, MAVEN accesses the page remotely when building the skeleton of the project 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,
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.
Java:maven build project too slow solution, and error retrieving archetypes: ' has encountered a problem