How to find project dependencies in eclipse? how eclipse builds the class path?
There is a project that in some way other project indirectly depends on. I'm trying to find the path of dependencies or the dependenci开发者_如何学Pythones graph in eclipse but can't find a way.
any way to do that ?
Right-click the project, then select "Properties", then "Java Build Path". The tabs "Projects" and "Libraries" list what the project depends on. Note that the "Order and Export" tab alllows you to have indirect dependencies.
All the information here is saved in a file named .classpath
in the project; if you want to find specific dependencies in a large workspace, then doing a text search over these files would be the fastest solution.
Install the Eclipse Project Dependencies Viewer (https://code.google.com/p/epdv/). It'll give you a nice diagram of your project dependencies.
There is command based option as well. Go to the root folder of your project(you will see pom file in there) On your command prompt type "mvn dependency:tree", this should print all the dependency your project has on your console.
You can redirect console output to a file, in case dependency tree is too big to fit in console; it is always easy to review this in a file.
精彩评论