Is there a maven 2 archetype for spring 3 MVC applications?

SpringSpring MvcMaven 2Maven Archetype

Spring Problem Overview


I'm experimenting with the spring 3 MVC framework. Since i use maven 2 to manage my project, i'm searching for a archetype to create a spring 3 MVC application.

Spring Solutions


Solution 1 - Spring

You can use STS (spring tool suite) a new spring MVC template project creates a working application using spring 3.

Or you can using Spring Roo to give a working foundation to your project.

Solution 2 - Spring

I also couldn't find useful archetypes, so I have created my own. You can find it here. If you find anything you'd like to add, please don't hesitate to mail me or send a patch

Solution 3 - Spring

Spring MVC quickstart archetype is available on GitHub, courtesy of kolorobot. Good instructions are provided on how to install it to your local Maven repo and use it to create a new Spring MVC project. He’s even helpfully included the Tomcat 7 Maven plugin in the archetypical project so that the newly created Spring MVC can be run from the command line without having to manually deploy it to an application server.

Kolorobot’s example application includes the following:

  • No-xml Spring MVC 3.2 web application for Servlet 3.0 environment
  • Apache Tiles with configuration in place,
  • Bootstrap
  • JPA 2.0 (Hibernate/HSQLDB)
  • JUnit/Mockito
  • Spring Security 3.1

Solution 4 - Spring

AppFuse and AppFuse Light have been upgraded to use Spring 3 so I guess you could use one of the appfuse archetypes.

But what is exactly a Spring MVC application if not a regular webapp with some dependencies on Spring 3 artefacts?

Solution 5 - Spring

From the springsource forum:

In Spring Source Tool Suite.

Go to New -> Other -> Spring Source Tool Suite -> Spring Template Project -> Spring MVC Project

enter the details and click Finish.

Solution 6 - Spring

The Codehaus Maven User Archetypes List has several archetypes including two from app-fuse that use Spring MVC.

Solution 7 - Spring

This archetype creates a Java web application that uses Spring MVC framework, Angular and Event Sourcing.

mvn archetype:generate \
 -DarchetypeGroupId=no.bouvet \
 -DarchetypeArtifactId=maven-archetype-eventsourcing \
 -DarchetypeVersion=1.0.2 \
 -DgroupId=com.domain.myapp \
 -DartifactId=myapp

You can find the source here - maven-archetype-eventsourcing

And read the blogg - Get your Event Sourced web application development started with one line using Maven!

Solution 8 - Spring

A friend and I created this spring boiler plate for SPA applications. Could perhaps be useful to you https://github.com/PabloK/SpringRESTboilerplate

Solution 9 - Spring

What I do is create a new Spring Project and one of the selections available in STS Simple Spring Web Maven; it sets up a Spring 3 Maven webapp, just modify the pom to Spring 4 and do a clean install from the Run Config.

Solution 10 - Spring

As far as i know it does not exist. But why didn't create your own?

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestiongregorView Question on Stackoverflow
Solution 1 - SpringHussain FakhruddinView Answer on Stackoverflow
Solution 2 - Springglaz666View Answer on Stackoverflow
Solution 3 - SpringAzizSMView Answer on Stackoverflow
Solution 4 - SpringPascal ThiventView Answer on Stackoverflow
Solution 5 - SpringdespotView Answer on Stackoverflow
Solution 6 - SpringTahir AkhtarView Answer on Stackoverflow
Solution 7 - SpringJan-Terje SørensenView Answer on Stackoverflow
Solution 8 - SpringPablo JomerView Answer on Stackoverflow
Solution 9 - SpringRobert GreathouseView Answer on Stackoverflow
Solution 10 - SpringkhmarbaiseView Answer on Stackoverflow