<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<!-- 指定jdk版本 -->
<source>1.7</source>
<target>1.7</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<!-- 指定本地加载jar包位置 -->
<extdirs>src\main\webapp\WEB-INF\lib</extdirs>
</compilerArguments>
<!-- 跳过测试 -->
<skip>true</skip>
</configuration>
</plugin>
转载于:https://my.oschina.net/u/3238650/blog/896284