|
|
@@ -134,6 +134,25 @@
|
|
|
|
|
|
<build>
|
|
|
<plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.5.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.7</source>
|
|
|
+ <target>1.7</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:${basedir}/WebContent/WEB-INF/lib</arg>
|
|
|
+ </compilerArgs>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|