I'm using Eclipse 4.5.2 (Mars.2 JEE), Eclipse Maven m2e v1.7.0 (20160603-1933) plugin, Java 8 multi-module project on Linux RedHat.
My project structure is the following:
Structure is:
parent-project
|-- pom.xml // only this file
|
|--module-a
| |-- pom.xml
| | code
|
|--module-b
|-- pom.xml // contains Module A as dependency
The problem I'm getting (in Eclipse, under "Markers") is:
"Maven Configuration Problem" -> No such file or directory pom.xml /module-b line 1 Maven Configuration Problem
Since I didn't have any issue reported in module-a, I've removed module-a from the module-b dependencies and the above problem is cleared away.
This led me to: It seems that the m2e gets confused when it comes to resolution of one workspace project as other other project dependency. Now, the code is working perfectly well in runtime, but I would like to get rid of this annoyance.
What I've tried:
Has anyone found similar issues? Any suggestions?
For me the root cause of this was this bug. If you are in an environment where your temporary directory is shared (e.g. /tmp on Linux), and two or more different users happen to open Eclipse and use M2E to build, then the error occurs. Somewhere in M2E it writes to /tmp/fakerepo, so whichever user gets to write here first gets to own the folder and breaks Eclipse for any other users.
A reboot will often fix the problem (/tmp gets cleared), or simply remove this temporary folder yourself as an administrator before starting Eclipse.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With