Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ new project - maven archetype list empty

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

like image 820
DanCat Avatar asked Jan 11 '15 23:01

DanCat


People also ask

How do I change my Maven archetype in IntelliJ?

Launch the New Project wizard. If no project is currently opened in IntelliJ IDEA, click New Project on the welcome screen. Otherwise, select File | New | Project from the main menu. Select Maven Archetype from the options on the left.

Why Maven is not showing in IntelliJ?

In the file menu select settings -> plugins. search for maven, select maven, select enable. Restart intellij. Once restarted you will now have the option to start new maven project and maven functionality will be accessible in all your previous projects.


1 Answers

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).

like image 117
Luke Avatar answered Sep 18 '22 16:09

Luke