# akiltipu/jenkins-aws-java-maven-app architecture

> Architecture diagram of the GitHub repository akiltipu/jenkins-aws-java-maven-app, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/akiltipu/jenkins-aws-java-maven-app
- Repository: https://github.com/akiltipu/jenkins-aws-java-maven-app

## Overview

This repository’s product is a Jenkins-driven CI/CD pipeline for a Java application: it versions the project, builds a package and container image, publishes the image to ECR, deploys it to an EC2 host with Docker Compose, then commits the version update. The application sources are present, but no source excerpts were supplied; relationships below rely on the README’s pipeline description, not inspected implementation.

Main entry points: [`Jenkinsfile`](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile) (Deploy stage), [`pom.xml`](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/pom.xml) (Maven), [`Dockerfile`](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Dockerfile) (Image instructions), [`web-deploy.sh`](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/web-deploy.sh) (Deploy script)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Pipeline stages"]
  node_jenkins["Jenkins pipeline"]
  node_version["Version increment"]
  node_commit["Commit version"]
end

subgraph group_build["Build and image"]
  node_package["Maven package"]
  node_maven["Maven<br/>[pom.xml]"]
  node_image["Build image"]
  node_dockerfile["Image instructions"]
  node_ecr[("Amazon ECR")]
end

subgraph group_deployment["Deployment"]
  node_deploy["Deploy stage"]
  node_deployscript["Deploy script<br/>[web-deploy.sh]"]
  node_compose["Compose services"]
  node_server["EC2 host"]
end

subgraph group_application["Application"]
  node_app["Java application<br/>[Application.java]"]
  node_web["Static page<br/>[index.html]"]
end

node_git[("Git repository")]

node_jenkins -->|"runs first"| node_version
node_version -->|"increments version"| node_maven
node_version -->|"then builds"| node_package
node_package -->|"packages with"| node_maven
node_package -->|"then builds"| node_image
node_image -->|"builds from"| node_dockerfile
node_image -->|"pushes image"| node_ecr
node_image -->|"then deploys"| node_deploy
node_deploy -->|"copies and runs"| node_deployscript
node_deploy -->|"copies to host"| node_compose
node_deploy -->|"connects by SSH"| node_server
node_deploy -->|"deploys pushed image"| node_ecr
node_deploy -->|"then commits"| node_commit
node_commit -->|"pushes version update"| node_git

click node_jenkins "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_version "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_package "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_maven "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/pom.xml"
click node_image "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_dockerfile "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Dockerfile"
click node_deploy "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_deployscript "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/web-deploy.sh"
click node_compose "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/docker-compose.yaml"
click node_commit "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile"
click node_app "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/src/main/java/com/example/Application.java"
click node_web "https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/src/main/resources/static/index.html"

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_jenkins,node_version,node_commit toneBlue
class node_package,node_maven,node_image,node_dockerfile,node_ecr,node_git toneAmber
class node_deploy,node_deployscript,node_compose,node_server toneMint
class node_app,node_web toneRose
```

## Components

### Pipeline stages

- [Jenkins pipeline](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`
- [Version increment](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`
- [Commit version](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`

### Build and image

- [Maven package](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`
- [Maven](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/pom.xml): `pom.xml`
- [Build image](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`
- [Image instructions](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Dockerfile): `Dockerfile`
- **Amazon ECR**

### Deployment

- [Deploy stage](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/Jenkinsfile): `Jenkinsfile`
- [Deploy script](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/web-deploy.sh): `web-deploy.sh`
- [Compose services](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/docker-compose.yaml): `docker-compose.yaml`
- **EC2 host**

### Application

- [Java application](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/src/main/java/com/example/Application.java): `src/main/java/com/example/Application.java`
- [Static page](https://github.com/akiltipu/jenkins-aws-java-maven-app/blob/main/src/main/resources/static/index.html): `src/main/resources/static/index.html`

### Other components

- **Git repository**

## Connections

- Jenkins pipeline → Version increment: runs first (evidence: `README.md`)
- Version increment → Maven: increments version (evidence: `README.md`)
- Version increment → Maven package: then builds (evidence: `README.md`)
- Maven package → Maven: packages with (evidence: `README.md`)
- Maven package → Build image: then builds (evidence: `README.md`)
- Build image → Image instructions: builds from (evidence: `README.md`)
- Build image → Amazon ECR: pushes image (evidence: `README.md`)
- Build image → Deploy stage: then deploys (evidence: `README.md`)
- Deploy stage → Deploy script: copies and runs (evidence: `README.md`)
- Deploy stage → Compose services: copies to host (evidence: `README.md`)
- Deploy stage → EC2 host: connects by SSH (evidence: `README.md`)
- Deploy stage → Amazon ECR: deploys pushed image (evidence: `README.md`)
- Deploy stage → Commit version: then commits (evidence: `README.md`)
- Commit version → Git repository: pushes version update (evidence: `README.md`)
