Basil Bourque
Basil Bourque

Reputation: 339472

IntelliJ 2017.2 stuck on `Loading archetype list` for `New Project` > `Maven`

When choosing the Create New Project option after launching IntelliJ 2017.2, I get this endlessly spinning wheel on the Maven tag, saying “Loading archetype list…”.

screen shot of New Project wizard panel

Any way to get to a Maven archetype?

Upvotes: 27

Views: 11249

Answers (5)

GrigoreG
GrigoreG

Reputation: 21

I managed to solve the issue by updating the NVIDIA driver, based on IntelliJ logs. Anything else did not work for me. The list loads now in a few seconds..finally.

Edit: as Basil suggested, here are some clarifications. I am on Windows 10 Home Edition 64b, and I have IntelliJ 2017.2 with Java 1.8.0_152. I checked IntelliJ logs and followed a standard procedure: I went on Google and I searched by that exception (I can't remember what and where) and found a site where someone suggested to update my nVidia drivers. For the update, you only need to go to nVidia site and from that on it should be easy. I was on a 2016 driver and got to 2018 version after the update. I also have the previously added configurations from other comments.

Upvotes: 1

letthefireflieslive
letthefireflieslive

Reputation: 12684

Add more memory

Settings > Maven > Importing

VM options for importer -Xm1024m (or more)

Upvotes: 8

wgz
wgz

Reputation: 11

Closing out of IntelliJ and creating the project from this window helped:

IntelliJ Welcome Screen

Upvotes: 1

Basil Bourque
Basil Bourque

Reputation: 339472

Wait

Loading the full list of Maven archetypes seems to be quite an exertion for IntelliJ. Surprising, as I don't recall any such long delays in NetBeans.

So wait, be patient. May take a couple minutes. Make tea, pat the dog. Wait for the fan on your computer to spin up and then quiet again.

Use more memory

I currently have VM options for importer set to -Xmx2048m as shown in the Answer by Tonhofer.

I do not know if this point was key, but my problem has gone away «knock-on-wood». So this might be helping.

FYI… I have a 16-gig MacBook Pro (Retina, 15-inch, Late 2013) running Sierra 10.12.6 with two Java implementations, Java 8 Update 144 from Oracle and Java 9 beta jdk-9+181 from OpenJDK.

Quit, update repositories

While I do not understand what all is going on, it seems like this has been a workaround for me.

Quit IntelliJ, then launch again.

In Preferences/Settings, go to Build, Execution, Deployment> Build Tools > Maven > Repositories. Click each of the listed repositories, and click the Update button. A spinning wheel appears for the duration of the update.

A copy of each repository’s data is being downloaded and parsed on your local machine, descriptions of all the libraries known by that repository. Some of the repositories may be quite large with many listed projects. So this process may take a while, possibly more than several minutes.

When the updates are complete, try the New Project feature again.

Upvotes: 14

David Tonhofer
David Tonhofer

Reputation: 15338

I just hit this on 2017.2.3 (just updated now) on Fedora 24 (oops time to upgrade)

The immediate solution was to change the Maven settings (File > Settings > Maven) to use my on-machine Oracle JDK 1.8.0_144 instead the default "internal JRE" 1.8.0_152. Btw, the importer uses JVM option -Xmx768m by default.

enter image description here

And we go on...

Upvotes: 20

Related Questions