Hi,

You can have a look to this plugin
https://maven-incremental-build.dev.java.net/

I know it doesn't solve completely the problem but now after a modification
or an update from scm, you can compile without a clean and be sure that all
the children of a modified module will be recompiled. Now, our builds are
safe and their times is more often than 5 minutes rather than 11 or 12,
depends if modifications are in hight level modules or not.

I still search the way to block the build process for modules with no
modifications on her dependencies so if someone has more informations on how
achieve it, it would be fine.

Vincent




On Wed, Sep 17, 2008 at 10:56 PM, Yann <[EMAIL PROTECTED]> wrote:

> Hi,
>
> In our company lot of people complains that our maven 2 builds are too
> long.
> We use multi modules and most of the time we only need to build 1 or 2
> modules not all of them.
>
> So a solution could be to create a Maven 2 plugin that will check if a
> source file has changed in the module. If no file has changed then it will
> skip all other phases of the module (from generate-sources to packaging...).
>
> So I know how to bind a plugin to the first maven phase (validate).
> But how to skip all others phases without interrupted the multi-module
> build ?
>
> Thanks
> Yann
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to