Maven:A cycle was detected in the build path of project 'xxx'. The cycle consists of projects {xx}

  以下这个错误是在Eclipse中导入多个相互依赖的工程时出现的“循环依赖问题”:
A cycle was detected in the build path of project 'xxx'. The cycle consists of projects {xxx}

暂时的处理方法:Eclipse菜单中:Window ==》》 Preferences… ==》》 Java ==》》 Compiler ==》》 Building ==》》 Building path problems ==》》 Circular dependencies ==》》 将Error改成Warning
另外建议从项目和代码方面进行规范,尽量不要出现循环依赖,即A包依赖B包,B包依赖A包(好在不是具体的类有循环依赖。。。。)

posted @ 2018-09-27 19:12  心明谭  阅读(526)  评论(0编辑  收藏  举报