elasticpath / mvnmin

Builds only changed maven modules, speeding up your multi-module maven project builds.
Apache License 2.0
44 stars 0 forks source link

Maven's -am flag is repeated for each reactor #15

Open SamuelCook opened 2 years ago

SamuelCook commented 2 years ago

The -am flag is evaluated for each reactor. This results in projects being built multiple times if an activated project is a dependency of a project activated in a later reactor.

When -am is enabled, the list of required projects should be evaluated prior to executing the build, and then should be ignored when running each reactor.

SamuelCook commented 2 years ago

I haven't tested it, but I wouldn't be surprised if the -amd flag had the same problem (but in reverse).