#1310: Corrected UseDepVersionMojo + handling a similar case in SetMojo, SetScmTagMojo, UpdateChildModulesMojo by andrzejj0 · Pull Request #1322 · mojohaus/versions (original) (raw)

There was a problem with the last fix of UseDepVersionMojo. Session.getProjects will contain all reactor projects if not executed with -pl.

Currently, this PR checks if the user intends to run the plugin on a set of modules by comparing session.projects with session.allProjects. Without this check, we still iterate over all modules of the reactor, which doesn't have to be what the user wants.

Also applied to other modifying mojos which are aggregating.