You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
use-dep-version with -pl skips modules after 2.15.0 #1310
Behavior Change After Upgrade
Plugin Version 2.14.2: This command succeeds for all specified modules (module1, module2, and module3).
Plugin Version 2.15.0 and Later: Only module1 succeeds (returns SUCCESS). The remaining modules, module2 and module3, are skipped (return SKIPPED).
I have attempted to run with the -X (debug) flag but have been unable to identify the reason for the skipping behavior in the latter modules following the upgrade.
This is caused by changing the aggregation type to aggregated for plugin execution in target UseDepVersion. This causes Maven to only execute the plugin for the first project on the module list (-pl) and skip it for all other modules.
However, the mojo only processes the first project on the project list by always using getProject() (same as MavenSession::getCurrentProject), which will only return one project.
Activity
andrzejj0 commentedon Dec 1, 2025
This is caused by changing the aggregation type to aggregated for plugin execution in target UseDepVersion. This causes Maven to only execute the plugin for the first project on the module list (-pl) and skip it for all other modules.
However, the mojo only processes the first project on the project list by always using getProject() (same as MavenSession::getCurrentProject), which will only return one project.
Fixes mojohaus#1310: UseDepVersionMoto should process all projects on…
Fixes mojohaus#1310: UseDepVersionMoto should process all projects on…
Fixes mojohaus#1310: UseDepVersionMoto should process all projects on…
Fixes #1310: UseDepVersionMoto should process all projects on the pro…
mojohaus#1310: Handling a similar case in SetMojo, SetScmTagMojo, Upd…
mojohaus#1310: Handling a similar case in SetMojo, SetScmTagMojo, Upd…
mojohaus#1310: Handling a similar case in SetMojo, SetScmTagMojo, Upd…
mojohaus#1310: Handling a similar case in SetMojo, SetScmTagMojo, Upd…
mojohaus#1310: Corrected UseDepVersionMojo + handling a similar case …
mojohaus#1310: Corrected UseDepVersionMojo + handling a similar case …
mojohaus#1310: Corrected UseDepVersionMojo + handling a similar case …
mojohaus#1310: Corrected UseDepVersionMojo + handling a similar case …
#1310: Corrected UseDepVersionMojo + handling a similar case in SetMo…