Java EE. Maven.
Package resources marked as Resource root, package java as Source root also.
In my class I have path String property\file.properties, but when I run it, IDEA throws an exception :
"java.io.FileNotFoundException: property\file.properties (The system cannot find the path specified)"
But when I change path String to src\main\resources\property\file.properties it works.
Packages marked as source. In Project File - Module I also see that this directories marked as source roots.
How can I fix it, any ideas?
I have already tried invalidate cache.
P.S: When I rename my string path with shift + f6 file also change name.
EDIT: Source root packages

