How to create Spring MVC application with Maven structure in Intellij IDEA 13.1?

intellij-idea, java, maven, spring, spring-mvc

Solution

All you need to do is the following.

Click `File` -> `New Project` and then:

First add this Maven archetype (from the button on top right)

That archetype will help you bootstrap the project by providing some Spring configuration code and must be present in your local Maven repository (directions are provided on how to do that in the link I sent - it's very easy).

After adding the archetype just do like in the following screenshot:

The next screen just asks you for the the `GroupId`, `ArtifactId` and `Version` of your project. The following screens are trivial.

That's it!

Note that you can use any archetype you like (although the one I supplied seems to be very much up to date). If you find a better one than the one I supplied, feel free to use it. You can also write your own without too much trouble.

Problem

I want to to create new Spring MVC project in Maven structure using Intellij IDEA but can't do that. actually i want to create project like mkyong.com samples, like this. NOTE I'm new to Intellij IDEA and want to create new project not import from existing project.

Original source

Related problems