I have a project with an unusual structure. I have module1 and module2. Module1 has a dependency on Jar1. The sources for Jar1 is the source directory of Module2. Once I attach the source to Jar1, Module2 can no longer compile. The classes in Module 2 don't recognize other classes in the same package. If I remove the source attachment, everything goes back to normal.
Basically, I have this strange structure because Module1 code depends on the compiled classes of Module2 but Module1 cannot have any of Module2 libraries in it's classpath. This works fine in Eclipse, but I don't really want to use Eclipse.
Is this a bug or is there something else I can do to get this working?
I am using 7.0M2.
Any help would be appreciated.