The loop was detected in the project build path ... eclipse

Just started using eclipse, and I get the following error: the loop was detected in the project build path. The cycle consists of projects {x, y}.

How can i fix this? I did not do anything else, tried to add maven dependencies when an error occurred. Decency was removed, but it still shows. Tried to clear / build in maven, clear and restart my eclipse.

Any suggestions? spent hours trying to fix it.

+4
source share
2 answers

Move code. This is your only option. You need to identify the code at x, which depends on y, or the code at y, which depends on x. If you can move the code to another project, this may fix the problem. Otherwise, you may need to move the code to a new project. I had to do both.

+5
source

You can configure options to handle these dependencies, this will give you a WARNING Preferences > Java > Compiler > Building > Build path problems > Circular dependencies

It worked for me at least! Hope this works for you.

+1
source

Source: https://habr.com/ru/post/1539789/


All Articles