How to find project dependencies in eclipse? how does eclipse create a class path?

There is a project on which another project indirectly depends. I am trying to find the dependency path or dependency graph in eclipse but cannot find a way.

any way to do this?

+4
source share
3 answers

Right-click the project, then select Properties, then Java Build Path. The Projects and Libraries tabs list what the project depends on. Please note that the Order and Export tab allows you to have indirect dependencies.

All information here is saved in a file named .classpath in the project; if you want to find certain dependencies in a large workspace, then performing a text search on these files will be the fastest solution.

+3
source

Install the Project Eclipse dependency viewer ( https://code.google.com/p/epdv/ ). This will give you a good dependency diagram of your project.

+1
source

There is also a command option. Go to the root folder of your project (you will see a pom file there) At the command prompt, enter "mvn dependency: tree", this should print the entire dependency of your project on the console.

You can redirect console output to a file if the dependency tree is too large to fit into the console; It is always easy to view this in a file.

0
source

All Articles