把jar包复制到resources的lib文件夹下
添加依赖
<dependency>
<groupId>com.spring</groupId>
<artifactId>spring</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/resources/lib/spring.jar</systemPath>
</dependency>
添加插件
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>
查看jar包源码
1.把jar包放到target目录里
2.右击 Add as Library