You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2023/04/28 12:02:00 UTC
[jira] [Commented] (MENFORCER-479) Version enforcer rules print single versions when a range is expected
[ https://issues.apache.org/jira/browse/MENFORCER-479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17717638#comment-17717638 ]
Elliotte Rusty Harold commented on MENFORCER-479:
-------------------------------------------------
Real world example from RequireMavenVersion:
[ERROR] Rule 0: org.apache.maven.plugins.enforcer.RequireMavenVersion
failed with message:
Detected Maven Version: 3.5.0 is not in the allowed range 3.8.4
3.8.4 is a single version, not a range. Either fix VersionRange.toString to always return a range or don't use toString here.
> Version enforcer rules print single versions when a range is expected
> ---------------------------------------------------------------------
>
> Key: MENFORCER-479
> URL: https://issues.apache.org/jira/browse/MENFORCER-479
> Project: Maven Enforcer Plugin
> Issue Type: Bug
> Components: Rule API
> Reporter: Elliotte Rusty Harold
> Priority: Major
>
> AbstractStandardEnforcerRule incorrectly assumes that the toString method of a VersionRange will be a version range. However it can be just a single version rather than the entire range. E.g. 3.8.4 instead [3.8.0, 3.9)
--
This message was sent by Atlassian Jira
(v8.20.10#820010)