您的位置:首页 > 其它

maven 添加本地jar

2016-03-17 12:48 267 查看
方式一

Xml代码

<dependency>

<groupId>org.apache</groupId>

<artifactId>test</artifactId>

<version>1.0</version>

<scope>system</scope>

<systemPath>${basedir}/src/main/webapp/WEB-INF/lib/paypal_base.jar</systemPath>

</dependency>

方式二:

添加extdirs将jar包相对路径添加到配置中,如下:

<build>

<plugins>

<plugin>

<artifactId>maven-compiler-plugin</artifactId>

<configuration>

<source>1.6</source>

<target>1.6</target>

<encoding>UTF-8</encoding>

<compilerArguments>

<extdirs>src\main\webapp\WEB-INF\lib</extdirs>

</compilerArguments>

</configuration>

</plugin>

</plugins>

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