Skip to content

Resolves #990: Check prerequisites if required enforcer Maven version is empty - #994

Merged
slawekjaranowski merged 1 commit into
mojohaus:masterfrom
andrzejj0:issue-990
Aug 19, 2023
Merged

Resolves #990: Check prerequisites if required enforcer Maven version is empty#994
slawekjaranowski merged 1 commit into
mojohaus:masterfrom
andrzejj0:issue-990

Conversation

@andrzejj0

@andrzejj0 andrzejj0 commented Jul 29, 2023

Copy link
Copy Markdown
Contributor

Check prerequisites if enforcer check for Maven version is not present.

Prerequisites are checked after enforcer -- disputable, but at least this keeps the behavior backwards compatible.

The plugin will choose the version which is the highest between: default maven version, prerequisites, enforcer.

@slawekjaranowski please check

@andrzejj0

andrzejj0 commented Jul 30, 2023

Copy link
Copy Markdown
Contributor Author

Actually, I think it should take the greater of the two. I'll redo the PR.

Also, I don't really think that they're should be a default maven version. Currently it's 3.2.5, which is the minimum version required by the versions plugin, but the POM being analysed is executed without the versions plugin being involved and thus 3.2.5 shouldn't be taken into account. -> #995

@andrzejj0
andrzejj0 marked this pull request as draft July 30, 2023 04:08
@andrzejj0
andrzejj0 marked this pull request as ready for review July 30, 2023 07:00
@andrzejj0
andrzejj0 force-pushed the issue-990 branch 2 times, most recently from c03e633 to a71610c Compare July 30, 2023 07:45
@slawekjaranowski slawekjaranowski linked an issue Aug 17, 2023 that may be closed by this pull request
@slawekjaranowski slawekjaranowski added this to the next-release milestone Aug 17, 2023
@slawekjaranowski
slawekjaranowski merged commit 1cfdb54 into mojohaus:master Aug 19, 2023
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.

Bug: prerequisites are not detected

2 participants