Skip to content

#1310: Corrected UseDepVersionMojo + handling a similar case in SetMojo, SetScmTagMojo, UpdateChildModulesMojo#1322

Merged
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1310-pl-rest
Dec 2, 2025
Merged

#1310: Corrected UseDepVersionMojo + handling a similar case in SetMojo, SetScmTagMojo, UpdateChildModulesMojo#1322
andrzejj0 merged 1 commit intomojohaus:masterfrom
andrzejj0:issue-1310-pl-rest

Conversation

@andrzejj0
Copy link
Copy Markdown
Contributor

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.

…in SetMojo, SetScmTagMojo, UpdateChildModulesMojo
@andrzejj0 andrzejj0 added this to the 2.20.2 milestone Dec 2, 2025
@andrzejj0 andrzejj0 self-assigned this Dec 2, 2025
@andrzejj0 andrzejj0 added the bug label Dec 2, 2025
@andrzejj0 andrzejj0 linked an issue Dec 2, 2025 that may be closed by this pull request
@andrzejj0 andrzejj0 merged commit de27177 into mojohaus:master Dec 2, 2025
17 checks passed
@andrzejj0 andrzejj0 deleted the issue-1310-pl-rest branch December 2, 2025 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use-dep-version with -pl skips modules after 2.15.0

2 participants