Eclipse Maven Find Class Dependency

I have a maven project in my Eclipse. I can click on the class and Eclipse will open the Type navigator and it will display the class file ( .class), and possibly some source - if it is available, but how can I get Eclipse to show me maven dependencies or dependencies that were added to this class?

EDIT: I know how to find a place in my local .m2 repository. What I'm looking for is a way to find out which maven dependency is associated with this class.

For example, if I click on HTTPClient, Eclipse will tell me The Jar file /Users/clangdon/.m2/repository/net/authorize/sdk/1.4.6.jar has no source attachment, but how do I know if this is due to the maven dependency

    <dependency>
        <groupId>net.sf.opencsv</groupId>
        <artifactId>opencsv</artifactId>
        <version>2.3</version>
        <scope>compile</scope>
    </dependency>
+4
source share
2

ctrl + (- )

,

right click > show in package-explorer

jar, classpath

, jar maven

, jar you, , id maven.

/Users/clangdon/.m2/repository/net/authorize/sdk/1.4.6.jar

GAV

groupId= net.authorize
artifactId=sdk
version=1.4.6

pom.xml, GAV

, ,

mvn dependency:tree -Dincludes="net.authorize:sdk"

pom

+5

pom.xml maven: pom → → maven pom editor.

hiearchy . , !

+1

Source: https://habr.com/ru/post/1547802/


All Articles