Circular Dependencies: Forcing Eclipse to compile projects

Circular Dependencies are bad, really bad, and you should fear them as much as you would fear wolves in a dark forest by a dark winter night !

But sometimes, you have no other choices, and you have to face them, at least temporarily. And in this case, if you use Eclipse, you’ll not be able to launch your application because your favorite IDE does not want to compile your projects.

But (because there’s always a but), you can force it to compile them by doing this simple manipulation:
Preferences -> Java -> Compiler -> Building -> And then set “Circular Dependencies” to “Warning

Now Eclipse should compile your workspace correctly.
And don’t forget to resolve the circular dependency ASAP.

Hope this will help someone someday.

Leave a Reply