Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 641
user2172948 Avatar asked Jul 02 '13 08:07

user2172948


People also ask

How do I create a project Maven project in IntelliJ?

In the Project tool window, right-click your project and select Add Framework Support. In the dialog that opens, select Maven from the options on the left and click OK. IntelliJ IDEA adds a default POM to the project and generates the standard Maven layout in Project tool window.


2 Answers

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

like image 162
andrew Avatar answered Nov 07 '22 21:11

andrew


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

like image 30
dazewell Avatar answered Nov 07 '22 19:11

dazewell