SpringBoot 引入第三方本地jar 並打包

引入本地jar

在項目路徑下新建文件夾lib,並將jar放入
在這裏插入圖片描述

pom文件引入

 <dependency>
            <groupId>com.orifound</groupId>
            <artifactId>DES</artifactId>
            <version>1.0</version>
            <type>jar</type>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/DES-1.0.0.jar</systemPath>
        </dependency>

配置package帶入

  <build>
        <finalName>hdtoon-disabled-service</finalName>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <includeSystemScope>true</includeSystemScope>
                </configuration> 
            </plugin>
        </plugins>
    </build>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章