When you create a MAVEN project template by mvn archetype:generate This interaction, you often get stuck in the generating project in Interactive mode prompt (Figure 1).
Read the online post (the article at the bottom of the note), found to get archetype-catalog.xml caused by (browser access to Http://repo1.maven.org/maven2/archetype-catalog.xml, need to wait a long time to get to).
In fact, the download will find that Maven offers too many archetype, a full 1427 (Figure 2), sometimes just want to create a QuickStart project template, it does not take time to download this archetype-catalog.xml.
The workaround is to add the-darchetypecatalog=internal parameter (Figure 3) and get the archetype-catalog.xml locally, so that you can quickly create the QuickStart project template.
Of course if you need to create another template, you can edit the local archetype-catalog.xml or take the time to get it online.
(Fig. 1)
(Fig. 2)
(Fig. 3)
Reference post: http://www.w2bc.com/Article/45560
Creating a Maven project template with mvn archetype:generate slow problem