maven 引用本地jar


1.添加lib文件夾在src文件夾中。
2.拷貝所需要的test.jar包到lib文件夾。
3.在pom文件加入如下依賴

 

<!--添加本地私有包-->
<dependency>
<groupId>gnete-bc-139</groupId>
<artifactId>gnete-bc-139</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}\src\main\webapp\WEB-INF\lib\gnete-bc-139.jar</systemPath>
</dependency>
<dependency>
<groupId>gnete-security-1.1</groupId>
<artifactId>gnete-security-1.1</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${basedir}\src\main\webapp\WEB-INF\lib\gnete-security-1.1.jar</systemPath>
</dependency>
<!--添加本地私有包-->


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM