Maven Dep Tree banner
jfrog jfrog

Maven Dep Tree

Development community

Description

Maven plugin that reads the Maven dependencies of a given Maven project, and generates a dependency tree.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

[![Scanned by Frogbot](https://raw.github.com/jfrog/frogbot/master/images/frogbot-badge.svg)](https://github.com/jfrog/frogbot#readme) [![Test](https://github.com/jfrog/maven-dep-tree/actions/workflows/test.yml/badge.svg?branch=main)](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

🌲 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:

mvn com.jfrog:maven-dep-tree:tree -DdepsTreeOutputFile=

Output:



...

Output Tree Structure:

{
  "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"
      ]
    }
  }
}

Including Build-Plugin Dependencies

Set `-DincludePluginDeps=true` (default `false`) to also resolve build plugins in the install lifecycle and their transitive dependencies. These are downloaded during `mvn install` but are invisible to `mvn dependency:tree