Fixing build with JDK 17
diff --git a/pom.xml b/pom.xml
index 840d280..a899c5e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -350,6 +350,19 @@
                         </execution>
                     </executions>
                 </plugin>
+                <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-enforcer-plugin</artifactId>
+                    <version>3.0.0-M3</version>
+                    <configuration>
+                        <rules>
+                            <requireMavenVersion>
+                                <version>3.5</version>
+                            </requireMavenVersion>
+                        </rules>
+                    </configuration>
+                </plugin>
+
             </plugins>
         </pluginManagement>