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?
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
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).Helped two changes: 1. Clearing the field: Settings (Ctrl+Alt+S) -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing -> VM options for importer (just make this field empty) 2. Changing the option Settings (Ctrl+Alt+S) -> Build, Execution, Deployment -> Build Tools -> Maven -> Importing -> JDK for importer to "1.8 (java version "1.8........etc.)
Switch Java runtimes
I had the same problem. My solution was, change the JRE in Settings → Maven → Importing → JDK for Importer. Switch from "Internal JRE" to "External JRE".
File -> Settings -> Type Maven in the search box and sub menu of Maven Importing has both the options. IntelliJ 2016.3.2
The setting that worked for me are combination of
But crucial was as stated by Sascha Jostock
After restart I needed to increase "VM option for importer" to a higher value -Xmx1792m. I find it stupid!!