You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "candrews (via GitHub)" <gi...@apache.org> on 2023/07/25 13:32:32 UTC
[GitHub] [maven] candrews commented on pull request #1210: [MNG-7851] Improve error message when modelVersion is 4.0
candrews commented on PR #1210:
URL: https://github.com/apache/maven/pull/1210#issuecomment-1649855572
> This will very likely violate the generated XML Schema.
How does it violate the schema? Can you point me to something?
The result of this change is only that the error message changes - no other behavior changes.
With `<modelVersion>4.0.0</modelVersion>`:
Before:
`'modelVersion' of '4.0' is newer than the versions supported by this version of Maven: [4.0.0]. Building this project requires a newer version of Maven.`
With this PR:
`'modelVersion' must be one of [4.0.0] but is '4.0'.`
In this PR, I added a unit test that demonstrates this change in error messaging behavior for this situation.
> Moreover, the validator prints a hard version. I consider this change wrong.
I'm sorry, I don't understand... Can you please clarify, perhaps with an example?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org