I have a Maven project on my Eclipse. When I perform call hierarchy I get the message:
The resource is not on the build path of a java project.
What needs to be configured for this?
I followed the following steps it worked:
I have this quite often. Seems bug in Eclipse. Quit/restart Eclipse seems the easiest to get things working again.
Assuming you're expecting a call hierarchy in your own code, ensure that all sources are located in the src/main/java directory.
Have you installed the Eclipse m2e plugin? Does your Eclipse recognize the project as a Maven project? (right click > maven > convert to maven project)
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