Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Aug 19, 2023

Conversation

jarmoniuk
Copy link
Contributor

@jarmoniuk jarmoniuk commented Jul 29, 2023

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

@jarmoniuk
Copy link
Contributor Author

jarmoniuk commented Jul 30, 2023

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

@jarmoniuk jarmoniuk marked this pull request as draft July 30, 2023 04:08
@jarmoniuk jarmoniuk marked this pull request as ready for review July 30, 2023 07:00
@jarmoniuk jarmoniuk force-pushed the issue-990 branch 2 times, most recently from c03e633 to a71610c Compare July 30, 2023 07:45
@slawekjaranowski slawekjaranowski merged commit 1cfdb54 into mojohaus:master Aug 19, 2023
8 checks passed
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