From: http://www.bubuko.com/infodetail-1110458.html
First, Reason
Idea according to the nature of Maven archetype, is actually executing the MVN archetype:generate command, when the command executes, you need to specify a archetype-catalog.xml file.
The parameter of the command is-darchetypecatalog, the optional value is: remote,internal, local, etc., to specify where the Archetype-catalog.xml file is to be obtained. The default is remote, which is to download the Archetype-catalog.xml file from the Http://repo1.maven.org/maven2/archetype-catalog.xml path. The Http://repo1.maven.org/maven2/archetype-catalog.xml file is approximately 3-4m and the download speed is slow, causing the creation process to get stuck.
Second, the solution
The workaround is simply to specify-darchetypecatalog as internal, and you can use the MAVEN default archetype-catalog.xml instead of the remote download.
MVN command When you create a project mvn archetype:generate-darchetypecatalog=internal
MVN archetype:generate Slow when creating a new MAVEN project