Skip to content

Commit 4a438a3

Browse files
author
wuweilin
committed
修改pom
1 parent 303b9c2 commit 4a438a3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

pom.xml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<dependency>
6868
<groupId>org.projectlombok</groupId>
6969
<artifactId>lombok</artifactId>
70-
<version>1.18.10</version>
70+
<version>1.18.30</version>
7171
<scope>compile</scope>
7272
</dependency>
7373

@@ -191,11 +191,18 @@
191191
<plugin>
192192
<groupId>org.apache.maven.plugins</groupId>
193193
<artifactId>maven-compiler-plugin</artifactId>
194-
<version>3.3</version>
194+
<version>3.8.1</version>
195195
<configuration>
196-
<source>1.8</source>
197-
<target>1.8</target>
196+
<source>17</source>
197+
<target>17</target>
198198
<encoding>UTF-8</encoding>
199+
<compilerArgs>
200+
<arg>-Xlint:all</arg>
201+
<!-- 添加以下参数解决Lombok问题 -->
202+
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
203+
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
204+
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
205+
</compilerArgs>
199206
</configuration>
200207
</plugin>
201208
</plugins>

0 commit comments

Comments
 (0)