gnodet commented on code in PR #2170:
URL: https://github.com/apache/maven/pull/2170#discussion_r2008796371


##########
impl/maven-impl/src/main/java/org/apache/maven/impl/DefaultModelXmlFactory.java:
##########
@@ -48,8 +48,37 @@
 @Singleton
 public class DefaultModelXmlFactory implements ModelXmlFactory {
     @Override
+    @Nonnull
     public Model read(@Nonnull XmlReaderRequest request) throws 
XmlReaderException {
         nonNull(request, "request");
+        Model model = doRead(request);
+        if (isModelVersionGreaterThan400(model)
+                && 
!model.getNamespaceUri().startsWith("http://maven.apache.org/POM/";)) {

Review Comment:
   Well, currently the code needs to accept both 
`http://maven.apache.org/POM/4.0.0` and `http://maven.apache.org/POM/4.1.0`, so 
I did not want enforce too much right now, whatever the outcome of that other 
discussion is.



-- 
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-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to