Maven打本地包时报错
原因是我的pom.xml中的依赖没有加scope属性。详情参见:
maven打包加入依赖包以及加入本地依赖包的方法
之前看了一篇博客说是要加上一个maven插件,但是不加也可以:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>true</fork>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>