I have a multi module Maven based project. Structure is something like below

- Module1
- Module2
- Web Module3

The WebModule depends on the two other modules which provide the service
layer. The WebModule is configured with a Jetty plugin . During development
it happens that both the service layer and the web layer are modified. As
per my understanding my current workflow is like this

1. Do the changes in Module1
2. Run mvn install in Module1
3. Restart the Jetty in WebModule

Is there any way to skip the second step. i.e. make Maven use the classes
which are present in the Module1/target/classes directory instead of using
the jar which is present/installed in the local repo.

This requirement is similar to the Multi Module Support in Eclipse. Where
the Maven eclipse plugin detects the aggregator pom's modules and add the
dependencies as project dependencies instead of jar dependency. This makes
the dev effort very simple as change in one module is simultaneously visible
in the other module without an explicit install steps.

The war plugin has support for overlays but I believe its only for war
dependency and not for jar dep

Chetan Mehrotra

Reply via email to