A cycle was detected in the build path of project
2018-04-11 17:32
519 查看
今天在用maven导入工程的时候遇到了A cycle
was detected in the build path of project这样的问题,以为是.jar引入的错误,后来在网上找到解决方法:
解决方法非常简单:
Eclipse Menu -> Window -> Preferences... -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> 将Error改成Warning
但是这样解决方法不靠谱,只是在欺骗IDE,告诉他不用把这个错误告诉我了,警告我就可以了。这样还真的可以编译。
主要是为了找到问题真正的所在原因,得先知道报的是什么错误,错误是“工程间循环引用而报错的问题”,说白了就是两个工程互相依赖了,只有知道哪个工程应该依赖于哪个工程,配置好就OK了,互相依赖的话IDE指定会提示你的。修改方法如下:
was detected in the build path of project这样的问题,以为是.jar引入的错误,后来在网上找到解决方法:
解决方法非常简单:
Eclipse Menu -> Window -> Preferences... -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> 将Error改成Warning
但是这样解决方法不靠谱,只是在欺骗IDE,告诉他不用把这个错误告诉我了,警告我就可以了。这样还真的可以编译。
主要是为了找到问题真正的所在原因,得先知道报的是什么错误,错误是“工程间循环引用而报错的问题”,说白了就是两个工程互相依赖了,只有知道哪个工程应该依赖于哪个工程,配置好就OK了,互相依赖的话IDE指定会提示你的。修改方法如下:
相关文章推荐
- 导入项目出现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 'core'. The cycle consists of projects {core, sms}
- 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)
- Eclipse Error:A cycle was detected in the build path of project
- Eclipse/STS 异常解决:A cycle was detected in the build path of project XXX
- 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
- java包名前面有个红色的大叹号(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’