A command line tool to scan the dependencies of a project and detect their Licenses.
The tool scans the metadata file (e.g. pom.xml for maven based projects and package.json for npm) and creates a dependency tree resolving the direct as well as transitive dependencies. The license (if found) is analyzed and matched with the licenses in the SPDX License Database using methods of NLP. The motivation for the algorithm of license detection is taken from Link.
- License Detection through License files
- License Detection through README files (If no License file is found in the package)
- Supports scanning remote public repo
- Supports scanning packages (zip/jar/tgz)
- Export report as JSON
- NPM
- Maven
- Gradle
- PyPI
- Rubygems
- Cargo
- Go Packages
- Tests
Go to the module aggregator dependency-scanner
and build
cd dependency-scanner
mvn clean install
To scan a local project
java -jar <path-to-jar> scan -src <project-path>
To scan a remote repository/package
java -jar <path-to-jar> monitor -src <url>
Contributions are always welcome. Help me make this software bug free, robust and support more package managers. Please feel free to raise an issue and discuss. Read the CONTRIBUTION GUIDELINES.