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
[MENFORCER-444] Improve error message for rule "requireJavaVersion" #571
When a single version is given as value for configuration version in rule requireJavaVersion the following error message might be emitted:
....
[INFO] --- maven-enforcer-plugin:3.1.0:enforce (enforce-java-version) @ parent ---
[ERROR] Rule 0: org.apache.maven.plugins.enforcer.RequireJavaVersion failed with message:
Detected JDK Version: 1.8.0-345 is not in the allowed range 11.
...
This is confusing as 11 is not a range, instead the derived range "[11,)" should be emitted in the error message (maybe in addition to the actual value given in the config).
Affects: 3.1.0
Issue Links:
MENFORCER-479 Version enforcer rules print single versions when a range is expected
Activity
jira-importer commentedon Jan 7, 2023
Konrad Windszus commented
Fixed in 49ff49a.