Skip to content
This repository was archived by the owner on May 8, 2019. It is now read-only.

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

maven-license-inspector

Gather all the dependencies and licenses from your maven project

This is a wrapper on maven commands mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:list and mvn org.codehaus.mojo:license-maven-plugin:1.12:download-licenses. It parses the output of those commands to build a licenses-dependencies.nosql that which contains all the dependencies (including transitive dependencies) found on your project (It will include all subprojects) in json format and licenses-licenses.nosql with the licenses found on the dependencies. Each dependency will include a reference to the licenses reported.

Usage

Scan your dependencies

node . P_PATH will start a scan on your project P_PATH/pom.xml

You can also specify regular expressions to ignore certain dependencies from the output of mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:list. See index.js on maven.dependencies call

After you are done filling all the gaps, you could (Todo: support this?) transform these json files to a full licenses.xml (as provided by mvn org.codehaus.mojo:license-maven-plugin:1.12:download-licenses).

Manually add licenses

After the files are generated, you can manually add licenses (used it to fill the gaps left by it) by doing. node . add-license --name LICENSE_NAME --url LICENSE_URL --id DEPENDENCY_ID where DEPENDENCY_ID is the id of each row in licenses-dependencies.nosql

Manually remove dependencies

You can also remove dependencies using node . remove-dependency --id DEPENDENCY_ID. The dependency will be removed and added to licenses-dependencies-bk.nosql.

Know issues

Not fully parametrized, lots of defaults are still on index.js

About

Gather all the dependencies and licenses from your maven project

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages