Skip to content
Analyzes the output of mvn dependency:tree -DoutputType=dot -f pom.xml
Branch: master
Clone or download
Latest commit db3b012 May 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper first May 4, 2019
src first May 4, 2019
.gitignore first May 4, 2019
.travis.yml first May 4, 2019 first May 4, 2019
LICENSE first May 4, 2019 update May 12, 2019 first May 4, 2019
build.gradle first May 4, 2019 first May 4, 2019 first May 4, 2019
gradlew first May 4, 2019
gradlew.bat first May 4, 2019 first May 4, 2019

Pom Dependency Analyzer

Build Status

This is a command line tool that parses the dot output of mvn dependency:tree and manages a set of json-files with its findings. The output can be used with Pom Dependency Analyzer Web to create a browsable webpage.

Intended to be used to identify, not only dependencies of an artifact, but also its dependants. Something that is often a problem when automating build processes.

You may try this on a public repository but be careful! Is is very likely a violation of its terms of service. See:

Example (change to whatever pom-file you want to examine):

POM_FILE=~/.m2/repository/se/bjurr/violations/violations-maven-plugin/1.19/violations-maven-plugin-1.19.pom \
 && mvn dependency:tree -DoutputType=dot -Doutput=$ -f $POM_FILE \
 && ./gradlew run --args="-d $"

Or all pom:s in a specific folder:

find ~/.m2/repository/se/bjurr -type f -name "*.pom" \
 | xargs -I % sh -c '([ ! -e ] || grep -Fq "\-SNAPSHOT" %) \
 && mvn dependency:tree -DoutputType=dot -f % \
 && ./gradlew run --args="-d" \
 && echo $(find ~/.m2 -name "*" | wc -l)/$(find ~/.m2 -name "*.pom" | wc -l)\
 || echo Skipping: %'

You may use Pom Downloader to download pom-files.


-ci, --create-image <boolean>              Create an image showing the result 
                                           of analysis.
                                           <boolean>: true or false
                                           Default: false
-d, --dot <path>                           This is the output file from 'mvn 
                                           dependency:tree -
                                           <path>: a file path
                                           Default: /home/bjerre/workspace/pom-dependency-analyzer/.
-h, --help <argument-to-print-help-for>    <argument-to-print-help-for>: an argument to print help for
                                           Default: If no specific parameter is given the whole usage text is given
-md, --metadata <string>                   These key/values will be stored 
                                           together with the artifact. Can be used to 
                                           record things like artifacts git repo or 
                                           artifacts Jenkins job URL. [Supports Multiple occurrences]
                                           <string>: any string
                                           Default: Empty list
-sf, --storage-folder <string>             This is where it will store files.
                                           <string>: any string
                                           Default: <user home>/.m2
You can’t perform that action at this time.