|
@@ -153,6 +153,25 @@
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
</plugin>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.5.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ <compilerArgs>
|
|
|
+ <arg>-Xlint:unchecked</arg>
|
|
|
+ <arg>-Xlint:deprecation</arg>
|
|
|
+ <arg>-bootclasspath</arg>
|
|
|
+ <arg>${env.JAVA_HOME}/jre/lib/rt.jar</arg>
|
|
|
+ <arg>-extdirs</arg>
|
|
|
+ <!-- windows下用分号隔开 -->
|
|
|
+ <arg>${env.JAVA_HOME}/jre/lib:${project.basedir}/lib</arg>
|
|
|
+ </compilerArgs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|