今天在搭建多模块项目的时候ServiceA引入ServiceB模块,启动的时候出现
Could not resolve dependencies for project.... 也就是ServiceB模块jar没找到
将ServiceB模块重新Install,模块没有springboot启动类先创建。
修改pom
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<classifier>exec</classifier>
</configuration>
</plugin>
</plugins>
</build>
本文由 阿俊 创作,如果您觉得本文不错,请随意赞赏
采用 知识共享署名4.0 国际许可协议进行许可
本站文章除注明转载/出处外,均为本站原创或翻译,转载前请务必署名
原文链接:https://jinterest.cn/archives/多模块引入失败
最后更新:2020-09-22 00:36:30
Update your browser to view this website correctly. Update my browser now