I am facing a problem modifying dependencies within Intellij12.04.

Under my project folder, I have two modules, the second of which depends on the first:

  • a.b.c.somebusiness
    ---> a.b.c.tests

I want to remove one dependency from a.b.c.tests and add it into a.b.c.somebusiness module, but I don't want to create a circular dependency tree. When I try to remove the dependency from the a.b.c.tests module and add it into the a.b.c.somebusiness module, I am getting the following error:

"Source root "C:\Perforce\depot\Projest\Main\a.b.c.tests\src\test" cannot be defined in module "Main" because it belongs to content of nested module "a.b.c.tests""

I don't know what to do to resolve this issue. Can anyone suggest an approach that would fix the error I'm receiving?

Edit
Report