Maven经验分享(三)编译引入本地jar

来源:互联网 发布:经典知乎问答 编辑:程序博客网 时间:2024/05/17 07:35

如果编译时需要引入本地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>

 

0 0