当前位置:   article > 正文

java依赖本地jar,启动时报错找不到类_jar包中有类,启动报找不到

jar包中有类,启动报找不到

依赖打包成功
在这里插入图片描述
项目也引用了
在这里插入图片描述
但是启动项目报错
在这里插入图片描述
检查依赖,和 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>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

参考:
https://blog.csdn.net/Candyz7/article/details/127220881
https://blog.csdn.net/dreaming317/article/details/106335656/

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/article/detail/55843
推荐阅读
相关标签
  

闽ICP备14008679号