Fwiw, the following branch allows rebuilding the maven-core tree without
any change at all, i.e. if you do a subsequent build, none of the output
files or jars is rewritten.
  https://github.com/gnodet/maven/commits/stale-compiler

There are still a few PR that needs to be merged and released in order to
leverage that:
  * https://github.com/codehaus-plexus/modello/pull/116
  * https://github.com/codehaus-plexus/plexus-containers/pull/46
  * https://github.com/eclipse/sisu.mojos/pull/4

Subsequent builds using `mvn install -DskipTests` go from 29 seconds down
to 16s (and 5s when using a hot mvnd)


Le lun. 31 janv. 2022 à 08:30, Guillaume Nodet <gno...@apache.org> a écrit :

> I was looking at why the maven builds are a bit slow and found out one of
> the culprit is modello which overwrites its generated files even if there
> are no changes: that cascades to recompiling the module, checking the style
> again, making a new archive and then recompiling the dependant modules
> aso...
> That was fixed a few months ago with
>   https://github.com/codehaus-plexus/modello/pull/116
> Would it be possible to release modello to be able to incorporate the fix
> and continue the work on optimization the build ?
>
> I'm willing to help in any way if that can actually speed up things...
>
> Cheers,
> Guillaume
>


-- 
------------------------
Guillaume Nodet

Reply via email to