Skip to content
No description or website provided.
Find file
Latest commit 2c40d1d Apr 25, 2016 @kolorobot Merge pull request #105 from chris-bailey/clarification-readme
Clarification for new project creation

Spring MVC 4 Quickstart Maven Archetype


The project is a Maven archetype for Spring MVC 4 web application.

Generated project characteristics

  • No-xml Spring MVC 4 web application
  • Thymeleaf, Bootstrap
  • JPA (Hibernate/HSQLDB/Spring Data JPA)
  • MongoDB (Spring Data Mongo)
  • JUnit/Mockito
  • Spring Security


To install the archetype in your local repository execute following commands:

    git clone
    cd spring-mvc-quickstart-archetype
    mvn clean install

Create a project

Create a new empty directory for your project and navigate into it.

    mvn archetype:generate \
        -DarchetypeGroupId=com.github.spring-mvc-archetypes \
        -DarchetypeArtifactId=spring-mvc-quickstart \
        -DarchetypeVersion=1.0.0 \
        -DgroupId=my.groupid \
        -DartifactId=my-artifactId \

Run the project

    mvn test tomcat7:run

Test on the browser


Note: No additional services are required in order to start the application. Mongo DB configuration is in place but it is not used in the code.

Creating a new project in Eclipse

  • Import archetype URI by Import ... > Projects from Git > Clone URI
  • Install the archetype in local repository with mvn install
  • Go to Preferences > Maven > Archetypes and Add Local Catalog
  • Select the catalog from file (archetype-catalog.xml)
  • Create new Maven project and select the archetype (remember so select Include snapshot archetypes)

If you have any troubles with installation in Eclipse, you may want to have a look at this issue: #74

Creating a new project in IntelliJ

  • Create new project File > New > Project
  • Click Maven on the left hand side of the new project dialog
  • Check Create from archetype
  • Click the Add Archetype button
  • Set Group Id to com.github.spring-mvc-archetypes
  • Set Artifact Id to spring-mvc-quickstart
  • Set Version to 1.0.0
  • Click next and create the project

Switching to PostgreSQL

  • Add dependency to PostgreSQL driver in POM:
  • Change

Something went wrong with that request. Please try again.