# damnardev-projects/maven-template architecture

> Architecture diagram of the GitHub repository damnardev-projects/maven-template, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-23). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/damnardev-projects/maven-template
- Repository: https://github.com/damnardev-projects/maven-template

## Overview

Maven Template is a reusable Java project scaffold, with a small runnable CLI example and a shared arithmetic utility. Its principal workflow is to start from the template, extend the module structure, and run the CLI; the README documents the Maven parent/configuration hierarchy and a test-coverage aggregator as template capabilities. Source excerpts confirm the CLI-to-calculator call. Other relationships below are documented in the README; unsampled POM internals are not inferred.

Main entry points: [`maven-template-internal-parent/pom.xml`](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-internal-parent/pom.xml) (Internal parent), [`pom.xml`](https://github.com/damnardev-projects/maven-template/blob/develop/pom.xml) (Project aggregator), [`maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java`](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java) (CLI example), [`maven-template-parent/pom.xml`](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-parent/pom.xml) (Shared parent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_template["Maven template"]
  node_root["Project aggregator<br/>[pom.xml]"]
  node_deps["Dependency catalog<br/>[pom.xml]"]
  node_parent["Shared parent<br/>[pom.xml]"]
  node_internal["Internal parent<br/>[pom.xml]"]
end

subgraph group_examples["Example modules"]
  node_cli["CLI example<br/>[Startup.java]"]
  node_calculator["Arithmetic utility<br/>[Calculator.java]"]
end

subgraph group_verification["Verification aggregation"]
  node_tests["Coverage aggregator<br/>[pom.xml]"]
end

node_developer(("Template user"))

node_developer -->|"starts from"| node_root
node_root -->|"lists modules"| node_deps
node_parent -->|"inherits"| node_deps
node_internal -->|"inherits"| node_parent
node_cli -->|"inherits"| node_internal
node_calculator -->|"inherits"| node_internal
node_developer -->|"extends modules"| node_internal
node_cli -->|"calls add"| node_calculator
node_tests -->|"aggregates coverage"| node_root

click node_root "https://github.com/damnardev-projects/maven-template/blob/develop/pom.xml"
click node_deps "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-dependencies/pom.xml"
click node_parent "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-parent/pom.xml"
click node_internal "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-internal-parent/pom.xml"
click node_cli "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java"
click node_calculator "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-common/src/main/java/fr/damnardev/template/maven/common/Calculator.java"
click node_tests "https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-tests/pom.xml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_root,node_deps,node_parent,node_internal,node_developer toneBlue
class node_cli,node_calculator toneAmber
class node_tests toneMint
```

## Components

### Maven template

- [Project aggregator](https://github.com/damnardev-projects/maven-template/blob/develop/pom.xml): `pom.xml`
- [Dependency catalog](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-dependencies/pom.xml): `maven-template-dependencies/pom.xml`
- [Shared parent](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-parent/pom.xml): `maven-template-parent/pom.xml`
- [Internal parent](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-internal-parent/pom.xml): `maven-template-internal-parent/pom.xml`

### Example modules

- [CLI example](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java): `maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java`
- [Arithmetic utility](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-common/src/main/java/fr/damnardev/template/maven/common/Calculator.java): `maven-template-common/src/main/java/fr/damnardev/template/maven/common/Calculator.java`

### Verification aggregation

- [Coverage aggregator](https://github.com/damnardev-projects/maven-template/blob/develop/maven-template-tests/pom.xml): `maven-template-tests/pom.xml`

### Other components

- **Template user**

## Connections

- Template user → Project aggregator: starts from (evidence: `README.md`)
- Project aggregator → Dependency catalog: lists modules (evidence: `README.md`)
- Shared parent → Dependency catalog: inherits (evidence: `README.md`)
- Internal parent → Shared parent: inherits (evidence: `README.md`)
- CLI example → Internal parent: inherits (evidence: `README.md`)
- Arithmetic utility → Internal parent: inherits (evidence: `README.md`)
- Template user → Internal parent: extends modules (evidence: `README.md`)
- CLI example → Arithmetic utility: calls add (evidence: `maven-template-cli/src/main/java/fr/damnardev/template/maven/cli/Startup.java`)
- Coverage aggregator → Project aggregator: aggregates coverage (evidence: `README.md`)
