springboot项目当install到本地仓库时,无法被其他项目引用问题解决方案

如果一个springboot项目作为依赖使用时,应满足下面两个条件:

1.整个项目中不包含项目启动类(包含main方法的xxxApplication类)

2.pom.xml中去掉这个插件:

<plugin>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

重新clean install 依赖

发布了39 篇原创文章 · 获赞 13 · 访问量 2302

猜你喜欢

转载自blog.csdn.net/weixin_45612794/article/details/103686443
今日推荐