IDEA pom中引用本地lib下的jar包


添加依賴

<dependency>
   <groupId>********</groupId>
    <artifactId>********</artifactId>
    <version>1.0.0</version>
    <!--使用本地jar-->
    <scope>system</scope>
    <!--jar包地址-->
    <systemPath>${project.basedir}/lib/zinglabs-ata.jar</systemPath>
</dependency>

注意:systemPath要改為自己本地的目錄,比如
${project.basedir}/src/main/resources/lib/a.jar

打包

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
    <!--關鍵地方  包含本地jar-->
    <configuration>
        <includeSystemScope>true</includeSystemScope>
    </configuration>
</plugin>

配置中添加

 <includeSystemScope>true</includeSystemScop


免責聲明!

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



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