Eclipse问题 A cycle was detected in the build path of project: XXX


Solve the problem of circular reference between Java projects in Eclipse.
If our project contains multiple projects, and they are in a circular reference relationship, then Eclipse will throw the following error message when compiling:
"A cycle was detected in the build path of project: XXX" The
solution is very simple:
Eclipse Menu -> Window -> Preferences… -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> Change Error to Warning

but this only solves the superficial problem. If such an error occurs, it may be that your underlying module refers to your upper-level module, which leads to the cycle of the project.

Reprint http://blog.csdn.net/kcai678/article/details/4668993

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326272732&siteId=291194637