I have two maven modules A and B for my project. The module A has a dependency with module B. In module B i am opening a file "user.txt" which i have kept under resources folder in module B.
Using Eclipse, i have work space dependency resolution enabled. When i run project A, it fails executing the method in module B. Error is that the file "user.txt" is not found. But the file is being searched under module A and not module B.
I tried to disable work space resolution, But the error persists. If i build the complete jar (A and B included) and run then the jar outside Eclipse, it is correctly located. Else i have to copy the file to module A as well to make it working in eclipse.
Any workaround?