A cycle was detected in the build path of project 'core'. The cycle consists of projects {core, sms}
2017-09-26 13:47
876 查看
今天上午用eclipse导入公司另一个项目组的项目时,由于两个相互依赖,导致eclipse报错无法编译,报错信息如下:
如图:
问题原因是:项目A依赖了项目B,项目B又依赖了项目A,默认情况下eclipse不允许项目之间进行循环依赖。
去掉项目依赖的方法:打开项目A的Java Build Path,把Projects里项目B依赖移除掉即可。
如果是跟我的情况一样,即项目必须相互依赖,则可以配置eclipse允许项目循环依赖。
A cycle was detected in the build path of project 'core'. The cycle consists of projects {core, sms}
如图:
问题原因是:项目A依赖了项目B,项目B又依赖了项目A,默认情况下eclipse不允许项目之间进行循环依赖。
解决方法:
项目之间循环依赖,这种方式不推荐使用,如果项目不是必须相互循环依赖,则可以去掉循环依赖,即项目A依赖项目B,项目B不依赖项目A。去掉项目依赖的方法:打开项目A的Java Build Path,把Projects里项目B依赖移除掉即可。
如果是跟我的情况一样,即项目必须相互依赖,则可以配置eclipse允许项目循环依赖。
eclipse允许项目循环依赖的方法
点击window–>Propreties–>Java–>Compiler–>Building,右侧找到Circular dependencies,将Error改为Warning,然后重新编译即可。如下图:相关文章推荐
- A cycle was detected in the build path of project
- 导入项目出现a cycle was detected in the build path of project问题解决
- A cycle was detected in the build path of project
- A cycle was detected in the build path of project 感叹号
- Eclipse问题 A cycle was detected in the build path of project: XXX
- Eclipse/STS 异常解决:A cycle was detected in the build path of project XXX
- A cycle was detected in the build path of project
- A cycle was detected in the build path of project
- A cycle was detected in the build path of project
- 【转】A cycle was detected in the build path of project:
- A cycle was detected in the build path of project
- 项目文件夹出现红色感叹号:A cycle was detected in the build path of project
- A cycle was detected in the build path of project
- Eclipse:A cycle was detected in the build path of project ‘XXX’
- [转载]A cycle was detected in the build path of project
- A cycle was detected in the build path of project
- A cycle was detected in the build path of project
- Eclipse Error:A cycle was detected in the build path of project
- A cycle was detected in the build path of project Build path Build Path Problem(Eclipse)
- A cycle was detected in the build path of project