maven项⽬pom⽂件引⼊本地jar包并打包的配置⼀、将jar包拷贝到项⽬⽂件夹响应位置,⼀般放到/src/main/webapp下
⼆、在l⽂件中加⼊以下标签内容
<dependency>
<groupId>credibledata</groupId>
<artifactId>credibledata</artifactId>
<version>2.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/credibledata-envelop-1.0-SNAPSHOT.jar</systemPath>
</dependency>
<dependency>
<groupId>jdk15on</groupId>
<artifactId>jdk15on</artifactId>
<version>2.1</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/bcprov-jdk15on-1.57.jar</systemPath>
</dependency>
三、在l⽂件的<build>标签的⼦标签<plugins>的⼦标签<plugin>下加⼊如下标签配置
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
如图所⽰,是添加后的配置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>maven打包本地jar包
第三步是为了能让本地引⼊的jar包在打包时可以打到jar⾥去。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。