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