[Build] Upgrade maven-compiler-plugin to 3.9.0 to fix some compilation issues
announcement of 3.9.0 with release notes:
@@ -234,6 +234,7 @@ flexible messaging model and an intuitive client API.</description>
<!-- do not upgrade surefire.version to 3.0.0-M5 since it runs slowly and breaks tests. -->
<surefire.version>3.0.0-M3</surefire.version>
<maven-assembly-plugin.version>3.3.0</maven-assembly-plugin.version>
+ <maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version>
<maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version>
<maven-modernizer-plugin.version>2.3.0</maven-modernizer-plugin.version>
<maven-shade-plugin>3.2.4</maven-shade-plugin>
@@ -1695,6 +1696,11 @@ flexible messaging model and an intuitive client API.</description>
<pluginManagement>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${maven-compiler-plugin.version}</version>
+ </plugin>
<plugin>
<groupId>org.gaul</groupId>
<artifactId>modernizer-maven-plugin</artifactId>
