apache / apache/maven-dependency-plugin

[MDEP-695] Improve mvn dependency:tree - add option to generate mermaidjs flowchart diagram format

Open
#1,214 1 comment 0 reactions 0 assignees View on GitHub
enhancement priority:minor
Dominant language
Java
Stars
175
Forks
196
Avg merge
19h 30m
Merged PRs (30d)
5

Description

**[Emanuel Ciuca](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=eciuca)** opened **[MDEP-695](https://issues.apache.org/jira/browse/MDEP-695?redirect=false)** and commented

While trying to generate some diagrams for maven module dependencies I found mermaidjs flowchart diagrams to be most suitable for large graphs. (see [https://mermaid-js.github.io/mermaid/#/flowchart](https://mermaid-js.github.io/mermaid/#/flowchart)))

Here is an example of a graph I generated for one of the projects I work on:

 

```java
graph LR

module-1 --> |compile| module-2
module-3 --> |compile| module-4
module-3 --> |test| module-5
module-3 --> |compile,test| module-2
module-3 --> |test| module-1
```

 

I would be helpful to be able to generate this diagram for a multi-module maven project

 

 

---

**Affects:** waiting-for-feedback

**Attachments:**
- [demo.svg](https://issues.apache.org/jira/secure/attachment/13002797/demo.svg) (_12.36 kB_)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the dependency:tree goal and its existing output options in the Maven Dependency Plugin. Define the Mermaid flowchart output for the module dependency graph, including dependency scopes such as compile and test, and verify that a multi-module project produces a valid diagram matching the requested example.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.