Which maven archetype to use?

I am developing a distributed application that uses Spring, Hibernate, RMI frameworks . I am using Eclipse and m2eclipse plugin for development.

I was creating a New Maven project , but when browsing the available archetype directory I was confused about which archetype to use. My questions

  • What are my options?
  • Which one works best?
+3


source to share


1 answer


I like to use maven-archetype-webapp. It's simple and it won't be anything you don't want. I have tried using archetypes that already include Spring, but inevitably something is not configured the way I want it, and it is easier to add spring yourself than to change the pre-existing spring construct as you want it.

I also find it best to add hibernate dependencies.



This tutorial is very helpful for adding these dependencies . Be sure to check out the GitHub project and have a look at it!

+1


source







All Articles