手动引入jar包并打包进BOOT-INF/lib

手动引入本地jar文件

<dependency>
    <groupId>com.sun.jnagroupId>
    <artifactId>examplesartifactId>
    <version>3.0.9version>
    <scope>systemscope>
    
    <systemPath>${project.basedir}/../../lib/examples.jarsystemPath>
dependency>

打包需要加入以下配置

<plugin>
    <groupId>org.springframework.bootgroupId>
    <artifactId>spring-boot-maven-pluginartifactId>
    <configuration>
    
        <includeSystemScope>trueincludeSystemScope>
    configuration>
plugin>

你可能感兴趣的:(jar,java,maven)