Book Image

Mastering Apache Maven 3

Book Image

Mastering Apache Maven 3

Overview of this book

Table of Contents (16 chapters)
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Spring MVC applications with the archetype plugin


Spring Model View Controller (MVC) is a web application framework developed under the Spring framework, which is an open source application framework and an inversion of control container. Here, we will see how to generate a template Spring MVC application using the spring-mvc-quickstart archetype.

Note

To know more about the Spring MVC framework, refer to http://docs.spring.io/spring/docs/current/spring-framework-reference/html/mvc.html.

Currently, the spring-mvc-quickstart archetype is not available in any of the public Maven repositories, so we have to download it from GitHub and build from the source, as follows:

$ git clone https://github.com/kolorobot/spring-mvc-quickstart-archetype.git
$ cd spring-mvc-quickstart-archetype
$ mvn clean install

Once the archetype is built from the source and is available in the local Maven repository, you can execute the following command to generate the template Spring MVC application:

$ mvn archetype:generate...