怀旧网个人博客地址:怀旧网,博客详情:springboot 项目配置本地jar包导入
第一步
将需要在resources目录下面创建一个用来存放jar包的文件件
第二步
在pom.xml中的配置当前jar包的路径:代码示例如下-导入虹软的sdk包
<dependency>
<groupId>com.arcsoft.face</groupId>
<artifactId>arcsoft-sdk-face</artifactId>
<version>2.2.0.1</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/lib/arcsoft-sdk-face-3.0.0.0.jar</systemPath>
</dependency>
第四步
在中添加配置开关-如下:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.3.5.RELEASE</version>
-----------------------------------------------框起来的部分必须
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
-----------------------------------------------
</plugin>
</plugins>
</build>
第五步
右上角maven先进行clear操作-在进行install即可。