MastAvalons
MastAvalons

Reputation: 1141

Architecture for modular Spring project

I want create skeleton for big ecommerce project. It will be huge project. It should be a core module and set of additional modules. Now I am thinking about maven modules into Spring MVC project. But I am newbie in maven and Spring How make each module independent from other modules? Any best practice? Any examples or code snippets?

Upvotes: 2

Views: 1807

Answers (1)

Sam
Sam

Reputation: 564

I have a multi-module Maven project which was created couple of months back. I can give you some pointers.

It can be structured as a parent project and multiple child modules under it. In my case the output generated with Maven is a .war file and which contains jar files from each child module.

From maven you can build each modules separately if you want.

This is a useful link for multi-module creation http://skillshared.blogspot.in/2012/11/how-to-create-multi-module-project-with.html

These are the layers on a high level:

Bean > Service > DAO [JPA]

Another useful link on directory structure is Maven Multi Module Project Structuring Issues

Upvotes: 1

Related Questions