When you import a maven project with multiple modules, and one is a webapp, it will auto create a webapp artifact .
In this artifact the depend modules are included packaged as jars.This is really cool and correct(tm).
But the fact that those modules are included as a jar make it a lot harder to reload classes & resources during debugging.
For example when re-compiling in debug mode and things are packed in the jars it will start throwing class not found exceptions
really soon, and also resources seem troublesome (at least with the framework i'm using. (wicket)).
Everything works fine if i manually go and delete the jars, and add the 'compile output' from the differed modules in the 'classes'
Because this artifact is re-created everytime you change/reimport the pom i end up manually having to change this a great number of times.
(pom changes from switching branches etc)
So my question is, does anyone know a nice(r) way to deal with this so that i wouldn't have to keep manually changing this artifact?
Without losing the automatic syncing of dependencies and modules with maven (which is the greatest thing ever)