7c6556
From 7f97d98125938d065c2025716f041a1dbde326c2 Mon Sep 17 00:00:00 2001
7c6556
From: Mikolaj Izdebski <mizdebsk@redhat.com>
7c6556
Date: Fri, 22 Apr 2022 11:15:38 +0200
7c6556
Subject: [PATCH 6/6] Restore DefaultModelValidator compatibility with Maven
7c6556
 3.5.4
7c6556
7c6556
---
7c6556
 .../maven/model/validation/DefaultModelValidator.java       | 6 ++++++
7c6556
 1 file changed, 6 insertions(+)
7c6556
7c6556
diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java b/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
7c6556
index f77321c16..4ed22f3ed 100644
7c6556
--- a/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
7c6556
+++ b/maven-model-builder/src/main/java/org/apache/maven/model/validation/DefaultModelValidator.java
7c6556
@@ -44,6 +44,7 @@
7c6556
 import org.apache.maven.model.building.ModelProblem.Version;
7c6556
 import org.apache.maven.model.building.ModelProblemCollector;
7c6556
 import org.apache.maven.model.building.ModelProblemCollectorRequest;
7c6556
+import org.apache.maven.model.interpolation.DefaultModelVersionProcessor;
7c6556
 import org.apache.maven.model.interpolation.ModelVersionProcessor;
7c6556
 import org.codehaus.plexus.util.StringUtils;
7c6556
 
7c6556
@@ -85,6 +86,11 @@
7c6556
 
7c6556
     private ModelVersionProcessor versionProcessor;
7c6556
 
7c6556
+    public DefaultModelValidator()
7c6556
+    {
7c6556
+        this( new DefaultModelVersionProcessor() );
7c6556
+    }
7c6556
+
7c6556
     @Inject
7c6556
     public DefaultModelValidator(  ModelVersionProcessor versionProcessor )
7c6556
     {
7c6556
-- 
7c6556
2.35.1
7c6556