https://github.com/jfrog/maven-dep-tree
Maven plugin that reads the Maven dependencies of a given Maven project, and generates a dependency tree.
https://github.com/jfrog/maven-dep-tree
dependency-graph dependency-tree jfrog jfrog-xray maven maven-plugin
Last synced: 7 months ago
JSON representation
Maven plugin that reads the Maven dependencies of a given Maven project, and generates a dependency tree.
- Host: GitHub
- URL: https://github.com/jfrog/maven-dep-tree
- Owner: jfrog
- Created: 2023-07-09T14:31:21.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-09-29T14:40:52.000Z (8 months ago)
- Last Synced: 2025-09-29T16:28:33.710Z (8 months ago)
- Topics: dependency-graph, dependency-tree, jfrog, jfrog-xray, maven, maven-plugin
- Language: Java
- Homepage:
- Size: 61.5 KB
- Stars: 8
- Watchers: 4
- Forks: 7
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
[](https://github.com/jfrog/frogbot#readme)
[](https://github.com/jfrog/maven-dep-tree/actions/workflows/test.yml)
# đĒļ Maven Dependency Tree
This Maven plugin reads the Maven dependencies of a given Maven project, and generates a dependency tree.
This package was developed by JFrog, and is used by [JFrog Frogbot](https://github.com/jfrog/frogbot)
to generate the dependency tree for projects using Maven dependencies.
## Table of Contents
- [Usage](#-usage)
- [Tree](#-tree)
- [Output](#output)
- [Output Tree Structure](#output-tree-structure)
- [Project Info](#-project-info)
- [Output](#output-1)
- [Contributions](#-contributions)
## đĨī¸ Usage
### đ˛ Tree
Run *tree* in a directory containing a pom.xml file. The plugin will generate a dependency tree for each subproject that
contains a pom.xml file.
The command:
```bash
mvn com.jfrog:maven-dep-tree:tree -DdepsTreeOutputFile=
```
#### Output:
```
...
```
#### Output Tree Structure:
```json
{
"root": "org.jfrog.test:multi:3.7-SNAPSHOT",
"nodes": {
"junit:junit:3.8.1": {
"children": [],
"configurations": [
"test"
],
"types": [
"jar"
]
},
"org.jfrog.test:multi:3.7-SNAPSHOT": {
"children": [
"junit:junit:3.8.1"
],
"configurations": [],
"types": [
"pom"
]
}
}
}
```
### đ§ Project Info
Run *projects* in a directory containing a pom.xml file. The plugin will generate the project info for each subproject
that contains a pom.xml file.
The command:
```bash
mvn com.jfrog:maven-dep-tree:projects -q
```
#### Output:
```sh
{"gav":"org.jfrog.test:multi:3.7-SNAPSHOT","parentGav":"","pomPath":"/path/to/maven-example/pom.xml"}
{"gav":"org.jfrog.test:multi1:3.7-SNAPSHOT","parentGav":"org.jfrog.test:multi:3.7-SNAPSHOT","pomPath":"/path/to/maven-example/multi1/pom.xml"}
{"gav":"org.jfrog.test:multi2:3.7-SNAPSHOT","parentGav":"org.jfrog.test:multi:3.7-SNAPSHOT","pomPath":"/path/to/maven-example/multi2/pom.xml"}
{"gav":"org.jfrog.test:multi3:3.7-SNAPSHOT","parentGav":"org.jfrog.test:multi:3.7-SNAPSHOT","pomPath":"/path/to/maven-example/multi3/pom.xml"}
```
## đģ Contributions
We welcome pull requests from the community. To help us improve this project, please read
our [contribution](./CONTRIBUTING.md#-guidelines) guide.