IntelliJ new project - maven archetype list empty

DanCat picture DanCat · Jan 12, 2015 · Viewed 18.4k times · Source

When creating IntelliJ → New Project → Maven, the archetype list is blank and does not populate no matter how long the amount of time elapsed. The "Loading archetype list..." continues but does not appear to do much. Any suggestions?

enter image description here

Info from mvn -v:

Apache Maven 3.2.5 (NON-CANONICAL_2014-12-25T17:13:28_root; 2014-12-25T05:13:28-08:00)
Maven home: /opt/maven
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.17.6-1-arch", arch: "amd64", family: "unix"

IntelliJ IDEA Professional 14.0.2

Answer

Luke picture Luke · Mar 12, 2015

Maven's JRE is running out of memory.

Under Build → Build Tools → Maven → Importing, set VM options for importer to -Xmx1024m (the default vaule -Xmx512m is too low).