Eclipse在构建路径中检测循环,而maven则没有

时间:2013-01-26 01:14:30

标签: eclipse maven m2eclipse

Eclipse在构建时给出了以下错误:

A cycle was detected in the build path of project 'com.X'. The cycle consists of projects {com.Y, com.Y}
A cycle was detected in the build path of project 'com.Y'. The cycle consists of projects {com.X, com.Y}

但是,maven在命令行中使用“mvn clean install”构建完全正常,并且手动检查POM表明com.X依赖于com.Y但是com.Y不依赖于com.X。

知道可能导致这种情况的原因吗?

1 个答案:

答案 0 :(得分:0)

eclipse和maven正在使用不同的构建配置文件,一个(eclipse)包含循环依赖,另一个(maven)不包含。