spring boot maven 打jar包 不能引入外部jar

pom文件中先引入lib文件夹下的jar

<dependency>

...

    <systemPath>${project.basedir}/libs/jar包名</systemPath>
  </dependency>
<build>
  <plugins>
    <plugin>
    ..... <configuration> <fork>true</fork> <includeSystemScope>true</includeSystemScope> // 加入这行 </configuration> </plugin> </plugins> </build>
原文地址:https://www.cnblogs.com/dxk1019/p/13353273.html