I've got a problem. The problem is that when I (remote) debug my code, my dependencies are messed up, even though IntelliJ finds them when programming. This has the effect that while debugging, my debugger jumps to some (random?) class file with the same name, which is a dependency of some other project/module, but has a wrong version!
for example, this is my project:
dependency on XYZ class version 2.1-SNAPSHOT (points to 'workspace')
dependency on XYZ class version 2.0 (points to maven repo)
module3 (containing XYZ class version 2.1-SNAPSHOT)
The problem is that when I debug module1, (for example submodule 1.1), I encounter a class XYZ, which is resolved incorrectly. The debugger in IntelliJ jumps to the 2.0 version in the maven repo, even though my project has a dependency on the 2.1-SNAPSHOT version. IntelliJ even jumps to the class when it's a dependency of a totally unrelated module, which is totally outside the scope of the current SUT (the class which I'm debugging). But during code completion and typing/navigation in the IDE, everything works okay: clicking on it points to the correct location. However, when (remote) debugging, and pressing F7, intellij goes the repo version, which is not correct!
Now I cannot debug my code anymore, which is annoying to say the least! How can I fix this???