Maven项目常见问题:解决相互依赖
Posted 码农
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Maven项目常见问题:解决相互依赖相关的知识,希望对你有一定的参考价值。
问题如下:
INFO] Scanning for projects... [ERROR] The projects in the reactor contain a cyclic reference: Edge between ‘Ve rtex{label=‘org.kuuyee.sample:module-C:1.0-SNAPSHOT‘}‘ and ‘Vertex{label=‘org.ku uyee.sample:module-B:1.0-SNAPSHOT‘}‘ introduces to cycle in the graph org.kuuyee .sample:module-B:1.0-SNAPSHOT --> org.kuuyee.sample:module-A:1.0-SNAPSHOT --> or g.kuuyee.sample:module-C:1.0-SNAPSHOT --> org.kuuyee.sample:module-B:1.0-SNAPSHO T -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectCycleException
解决思路:
检查各种module模块中的pom.xml引入的依赖包,有没有导致相互依赖的,造成循环依赖问题。
以上是关于Maven项目常见问题:解决相互依赖的主要内容,如果未能解决你的问题,请参考以下文章