1. 添加依赖路径
<dependency>
<groupId>org.xvolks</groupId>
<artifactId>jNative</artifactId>
<version>1.1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/JNative.jar</systemPath>
</dependency>
2. 添加构建设置
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>