Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 200
gregor Avatar asked May 03 '10 10:05

gregor


People also ask

What is Spring MVC archetype?

The spring-mvc-archetype developed by Frédéric Fondement from ENSISA is used here. This archetype creates a new Java web project and adds the following framework components: Configuration for Spring 5 Web MVC using a Java class and annotations. Spring Context and Spring ORM. Java dependency injection as per JSR-330.

How do I know my Maven project archetype?

Archetype configurationYou can see the packaging maven-archetype . You can customize build of your archetype here as with any other pom. However, there is another pom. xml file located under src\main\resources\archetype-resources which is the pom file of the generated project.

What is archetype in spring?

As part of the distribution, Spring DM provides a Maven archetype which creates the basic structure of a Java project that uses Spring DM, especially useful to new users. To run the archetype (and create the new project), simply run the following command line: mvn archetype:generate.


2 Answers

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.

like image 55
Hussain Fakhruddin Avatar answered Sep 27 '22 23:09

Hussain Fakhruddin


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

like image 24
glaz666 Avatar answered Sep 28 '22 01:09

glaz666