Unfortunately my company has decided to go for a version control approach where every source code ever written is under the same module and the same source dir. This means that we often depend by "libraries" which we use the binary form of, but whose source is in our (huge) same version control tree.
Currently, when importing the binary jar with a particular library, let say com.xxx.extensions, we have problem attaching the sources because they reside in a huge directory.
Rather than importing the uber-common-megaroot we would only select the com/xxx/extensions directory, but at that point we lack the feature allowing us to specify that files in that directory actually are files in the "com.xxx.extensions" package, as module source directory inclusion allows, instead.
As far as I can see there is no "clean" way to do this, currently.