This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch 10891 in repository https://gitbox.apache.org/repos/asf/maven.git
commit 1a900863eed7cfd7b4b9e83a60afb1439b62cd78 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Sat Jul 19 08:30:32 2025 -0400 Make error message less awkward --- .../main/java/org/apache/maven/impl/model/DefaultModelValidator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelValidator.java b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelValidator.java index 77699d9949..8b4ea112f7 100644 --- a/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelValidator.java +++ b/impl/maven-impl/src/main/java/org/apache/maven/impl/model/DefaultModelValidator.java @@ -2023,7 +2023,7 @@ private boolean validateModelVersion( Version.V20, "modelVersion", null, - "of '" + requestedModel + "' is newer than the versions supported by this Maven version (" + "of '" + requestedModel + "' is not supported by this Maven version (" + getMavenVersionString(session) + "). Supported modelVersions are: " + validVersions + ". Building this project requires a newer version of Maven.", @@ -2037,7 +2037,7 @@ private boolean validateModelVersion( Version.V20, "modelVersion", null, - "of '" + requestedModel + "' is older than the versions supported by this Maven version (" + "of '" + requestedModel + "' is not supported by this Maven version (" + getMavenVersionString(session) + "). Supported modelVersions are: " + validVersions + ". Building this project requires an older version of Maven.",
