`
征途2010
  • 浏览: 244262 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

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>

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics