瀏覽代碼

添加编译插件

xielq 3 年之前
父節點
當前提交
73e267e5f7
共有 1 個文件被更改,包括 19 次插入0 次删除
  1. 19 0
      pom.xml

+ 19 - 0
pom.xml

@@ -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>