[MENFORCER-444] Improve error message for rule "requireJavaVersion" (original) (raw)
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).