14
votes

I created a Maven project in IntelliJ IDEA 12, finished the project name and pressed “next”,and now it shows GroupId,ArtifactId and Version. But Maven archetypes don't appear. It says

Loading archetype list....

I can press the “finish” but the project that created is not a web project.

Has anyone ever faced this situation?

2
same problem with IDEA version 13Lukas M.

2 Answers

29
votes

You can try to delete the files under {User_Home}/.IntelliJIdea{Version}/system/Maven/Indices and then restart your idea, this should work.

1
votes

Don't know if the question is still actual, but maybe you need to update maven's repositories index at first?

Settings->Maven->Repositories - select maven's Central repo (if it's there; otherwise you should add it (http://repo.maven.apache.org/maven2/)) and press Update button. This will take some time (it's about 270MB to download and parse for now). After that you'll have all the maven's Central index available locally together with an archetypes list.

If there's still a problem with Loading after things done, you may want to specify Maven->Importing: "VM options for importer" to -Xmx1024m (default is -Xmx512m and it's not enough).