如果编译时需要引入本地jar,则可以增加如下配置:
<plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.5.1</version> <executions> <execution> <id>default-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> </executions> <configuration> <source>1.6</source> <target>1.6</target> <encoding>GBK</encoding> <compilerArguments> <extdirs>DF/authprm/webapp/WEB-INF/lib</extdirs> </compilerArguments> </configuration> </plugin>