You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by el...@apache.org on 2025/07/19 12:30:38 UTC
(maven) branch 10891 created (now 1a900863ee)
This is an automated email from the ASF dual-hosted git repository.
elharo pushed a change to branch 10891
in repository https://gitbox.apache.org/repos/asf/maven.git
at 1a900863ee Make error message less awkward
This branch includes the following new commits:
new 1a900863ee Make error message less awkward
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(maven) 01/01: Make error message less awkward
Posted by el...@apache.org.
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 <el...@ibiblio.org>
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.",