Sunday, 8 September 2013

Maven dependency scopes for multi-module project

Maven dependency scopes for multi-module project

I am on initial stage of a java project (jsp/servlet project with maven).
It is a multi-module project. I am using maven. For now say there are 3
modules.
Model, controller, and web module. model needs mysql lib controller uses
model, extends and uses model's classes web needs controller and model
both modules.
I have added mysql to model's dependency, model is added to controller
module's dependency, and controller is added to web module's depencency.
(And do I need to add model module to dependency of web module? )
How can/should I configure scopes of dependencies of these modules?

No comments:

Post a Comment