赞
踩
依赖打包成功

项目也引用了

但是启动项目报错

检查依赖,和 common 对比,发现 data 依赖打包有问题

查看 data 的 pom.xml 发现有直接使用本地 jar
data 的 pom.xml 中配置maven将本地jar打入package中
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
参考:
https://blog.csdn.net/Candyz7/article/details/127220881
https://blog.csdn.net/dreaming317/article/details/106335656/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。