From 1d32d1cbca37106f76bd4d7ab855c9391eab798e Mon Sep 17 00:00:00 2001
From: wang--ge <wang__ge@126.com>
Date: Fri, 5 May 2023 16:42:52 +0800
Subject: [PATCH] adapt maven compiler plugin

---
 streambuffer/pom.xml | 34 +++++++++-------------------------
 1 file changed, 9 insertions(+), 25 deletions(-)

diff --git a/streambuffer/pom.xml b/streambuffer/pom.xml
index d3ddd1c..d4dd85c 100644
--- a/streambuffer/pom.xml
+++ b/streambuffer/pom.xml
@@ -159,6 +159,9 @@
                 <artifactId>maven-javadoc-plugin</artifactId>
                 <version>3.0.1</version>
                 <configuration>
+                    <sourceFileExcludes>
+                      <exclude>module-info.java</exclude>
+                    </sourceFileExcludes>
                     <additionalOptions>-Xdoclint:none</additionalOptions>
                 </configuration>
             </plugin>
@@ -301,32 +304,13 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
-                <version>3.7.0</version>
-                <executions>
-                    <execution>
-                        <id>default-compile</id>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                        <configuration>
-                            <release>9</release>
-                        </configuration>
-                    </execution>
-                    <execution>
-                        <id>base-compile</id>
-                        <goals>
-                            <goal>compile</goal>
-                        </goals>
-                        <configuration>
-                            <release>7</release>
-                            <excludes>
-                                <exclude>module-info.java</exclude>
-                            </excludes>
-                        </configuration>
-                    </execution>
-                </executions>
+                <version>2.5.1</version>
                 <configuration>
-                    <release>9</release>
+		  <source>1.5</source>
+                  <target>1.5</target>
+		  <excludes>
+                    <exclude>module-info.java</exclude>
+		  </excludes>
                 </configuration>
             </plugin>
         </plugins>
-- 
2.33.0

