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?
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.
You can try to delete the files under {User_Home}/.IntelliJIdea{Version}/system/Maven/Indices and then restart your idea, this should work.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With