Reputation: 317
We are developing JavaEE application using Eclipse (3.7/Indigo), Tomcat (6/7) and m2e-wtp (0.13.1). The application is using Maven overlay to reuse resources provided by another application.
Current situation, which is pretty annoying, is that each code change triggers a republish, and usually requires server restart. As advised in this answer, I would like to enable Serve modules without publishing checkbox to use hot code replacement instead of publishing.
However, when running in this mode, resources from the overlayed application are not available. This seems to be caused by lack of proper overlay support in m2e-wtp. There is an issue recently raised in m2e-wtp bugtracker, but it is unlikely to be fixed in a near future.
What is the best workaround to use overlays in Serve modules without publishing mode?
Upvotes: 3
Views: 2848
Reputation: 6513
Should be fixed afaik :
Fred Bricon added a comment - 09/14/11 11:32 AM
Fixed with commit 45b50868204f. Server module cache eviction was removed with MECLIPSE-176. So the new preference option (Window > Preferences > Server > Overlays) just prevents server incremental publish when an overlay dependency is modified.
However, it doesn't change the fact that WTP redeploys the master webapp when a class is modified.
Upvotes: 0
Reputation: 5579
WTP doesn't know anything about the concept of overlays, so fixing it will be tricky. War Overlay support in WTP is already a huge hack. For now, I opened https://issues.sonatype.org/browse/MECLIPSEWTP-172 which might help you a bit. Basically changes in overlays won't be automatically published.
Upvotes: 5