Java – OK Which jar in class comes from the eclipse ide

I'm debugging something in the Maven project in Eclipse IDE. As usual, when I enter the line (F5), I reach a Java class / file persistence class. I want to make sure which jar it comes from

Reason: there are two projects (existing) in POM Some dependencies are configured in XML I see two different sources of the file - one gives the desired result and the other doesn't I've tried to find persistence APIs, EJBs, etc., but I haven't found any of them in the Maven dependencies displayed in eclipse

Therefore, I want to grep POMS (parent project) to find jar

To sum up, whether there is a view in eclipse, I can see one Which jar does the class file come from?

Solution

Activate use editor links (double arrow) in package explorer and press F3 Eclipse extends the classes in the library (make sure the editor that displays persistence. Class has focus)

For the next step, suppose you use m2eclipse, open the POM editor and view the dependency hierarchy tab This gives the first hint that dependencies come from It may be transitive

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>