Skip to content

bravehorsie/dependency-dump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Dumps dependencies of maven project

Collect dependencies of a maven project and its modules / submodules. Prints all direct / transitive dependencies as flat list. Dependencies which are "optional" or were excluded in referencing dependency are not printed to the list.

Be sure to install you project into local repository before running, otherwise versions not present in central (*-SNAPSHOT) for exampe will not be found. By installing to local running time is reduced dozen times.

Two arguments are required for running: "path to your project" and "path to your local maven repository"

Usage:
java -jar dependencydump.jar -project ~/path/to/projectsources -localRepo ~/path/to/local/maven/repo

usage:
 -excludeGroups <arg>   Excludes dependencies with specified groupIds
                        separated by comma. Transitive dependencies of excluded artifacts will not
                        be printed, use with caution.
 -includeLicense        Include licenses parsed from POM files of direct
                        dependencies. Default false.
 -includeScopes <arg>   Include only dependencies with specified scopes.
                        Separated by comma. Transitive dependencies of excluded artifacts will not
                        be printed, use with caution.
 -localRepo <arg>       Filesystem path to local maven repository
                        (required)
 -project <arg>         Filesystem path to project (required)
 -tree                  Print dependencies as a tree merged from all
                        subprojects instead of flat output. Default false.

Example

git clone yourproject

mvn clean install in your porject

git clone git@github.com:bravehorsie/dependency-dump.git

mvn clean install in dependency-dump

java -jar target/dependency-dump-1.0-SNAPSHOT-jar-with-dependencies.jar -project ~/dev/java/jaxb-ri/ -localRepo=~/.m2/repository/ -includeScopes=compile,provided

Proxy configuration is read from "http_proxy" environment variable or http.proxyHost/http.proxyPort system variables.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages