<dependency>
<groupId>hanweb-sm</groupId>
<artifactId>hanweb-sm</artifactId>
<scope>system</scope>
<version>1.0</version>
<systemPath>${project.basedir}/src/main/resources/lib/hanweb-sm.jar</systemPath>
</dependency>
这样本地可以运行,但是无法打包,因为maven没有将本地的jar也打到生成的包中。
解决方法:在pom中给spring boot的打包插件设置一下includeSystemScope参数即可