I have 2 maven projects that are in the same svn tree. 1 has a depenency on the other. Let's call it the sub-module.
The sub-module doesn't change very often and it takes a long time to compile and build (thanks to gwt).
I'd like to have the sub-module build automatically if and only if there is a change to it.
I'd also like to have the main build be dependent on the sub module, so that if the sub module does change the build will pick it up immediately.
This will prevent me from have build failures when someone checks in changes to both.
The closest I've come to this setup is the following:
Main build is depending on the sub module build.
The sub module only checks out the files it needs to build.
Then it doesn't build if those file don't change.
The problem is that there are some shared config files that are needed for build but shouldn't trigger a sub module build.
I tried setting the build triggers on the Sub Module, but since it is a Main Build dependency it gets triggered anyway.
Does anybody know of a different approach?