Hi

Can someone explain to me how they develop a multi-module project with a
web module?

Suppose I have a project with 3 modules (all setup in eclipse and m2
enabled):
* api: contains the interfaces for DAO's, BO's, exceptions, facade and the
domain classes (pojo's)
* core: has a dependency on api and is the implementation of the api (for
example spring with hibernate)
* web: has dependency on api and core and uses for example struts.

All the modules compile and work fine. When I want to deploy it, you can
use "mvn package" and I have a war that can be deployed. So far so good.
But when I want to develop on all three modules at the same time (change
in api -> change in core -> change in web module), I need to repackage and
redeploy the whole app with each change.

So I'm looking for a better (more productive way) of doing this. This is
how I do it right now:

I use jetty ("mvn jetty:run" in eclipse) and configured
"webappsourcedirectory" to "web/target/<project-name>" and
"classesDirectory" to "web/target/classes". The web module has linked
sources to the api and core module so they also compile to
"web/target/classes".

When a dependency is added to any of the three modules, I run "mvn
war:inplace", remove the classes dir in the "web/src/main/webapp/WEB-INF"
dir and redeploy the application.
When an interface changes, I only need to redeploy the application.
When the body of a method changes, it's picked up and hot deployed.

Has anybody a better way of developing a project of this kind. Or has
anybody any remarks or suggestions that could help me, because I don't
really like the way my project is setup now.

Thanks in advance
Johan Vandeweerd


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to