Large projects typically use a build tool such as maven or ant . maven has a maven dependency plugin to list dependencies for the specific project you are invoking mvn dependency:list. In the case of ant, it depends on how the assembly of the script is written.
Perhaps you should provide more detailed information about your project environment, and you can get better answers.