SpringBoot maven install 添加本地包
通过Eclipse ,将Springboot项目打JAR,添加本地JAR
1、项目依赖本地JAR
2、pom.xml中添加maven依赖:
<dependency>
<groupId>org.opencv</groupId>
<artifactId>opencv</artifactId>
<version>3.4.3</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/opencv-343.jar</systemPath>
</dependency>
3、添加打包配置:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
作者:孤旅者