您的位置:首页 > 其它

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

2017-04-17 15:01 501 查看
如果编译时需要引入本地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>

 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: