This little tool helps you to see all the top level dependencies, your Maven project has. It searches your POM files recursively and removes the duplicates + test dependencies (right now). It can handle the dependencyManagement feature of the Maven as well and in addition you can remove artifacts from the output, containing a certain string or matching a Java regex (not tested but should work).
The input is the path to your project, the output will be a basic excel file without any formatting.
- Create an executable jar file
-
java -jar <tyour_jar_file_name_.jar> <tpath_to_your_project> <stringpattern_for_match_removals> <project_artifactId-s_of_dependencies_not_needed_to display>
java -jar checkProductionDependencies.jar c:\My_project_sources\
java -jar checkProductionDependencies.jar c:\My_project_sources\ myProjectSpecificThings
java -jar checkProductionDependencies.jar c:\My_project_sources\ myProjectSpecificThings artifact-id1,artifact-id2
Have fun, any comments are welcome!