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

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

猜你喜欢

转载自lipengjavablog.iteye.com/blog/2169823