报错问题:
[ERROR] The projects in the reactor contain a cyclic reference: Edge between 'Vertex{label='com.muyu:cloud-common-security:3.6.3'}' and 'Vertex{label='com.muyu:cloud-common-redis:3.6.3'}' introduces to cycle in the graph com.muyu:cloud-common-redis:3.6.3 --> com.muyu:cloud-common-core:3.6.3 --> com.muyu:cloud-common-security:3.6.3 --> com.muyu:cloud-common-redis:3.6.3 @
报错截图:
报错原因:
依赖循环调用
示例图:
解决办法:
解决循环依赖的方法就是打破循环,建议从存放公共的依赖的地方开始解决
此处我是将cloud-common-security中的cloud-common-core移除,然后重新加载依赖,重启项目就解决啦