user2172948
user2172948

Reputation: 213

Create a Maven project in Intellij IDEA 12 but alway in the "Loading archetype list "page

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?

Upvotes: 14

Views: 8645

Answers (2)

dazewell
dazewell

Reputation: 436

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

Upvotes: 1

andrew
andrew

Reputation: 326

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

Upvotes: 29

Related Questions