# git-commit-id/git-commit-id-maven-plugin

Maven plugin which includes build-time git repository information into an POJO / *.properties). Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments... :-)

Repository: https://github.com/git-commit-id/git-commit-id-maven-plugin
Canonical: https://ross.abutalabs.com/products/git-commit-id-maven-plugin
Homepage: http://www.kto.so
Language: Java
License: LGPL-3.0
License Family: copyleft
Topics: maven, maven-plugin, git, build-automation, continuous-delivery, versioning
Last push: 2026-08-17T08:42:53+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 77, longevity 100
- inputs: {"age_days": 5680, "days_push": 16, "days_rel": 152, "gap_med": 4, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1716, forks 300 (observed 2026-08-28T04:05:26.337601+00:00)

## What it is
A Maven plugin that captures git repository information (commit id, branch, tags, dirty state) at build time and exposes it as pom.xml properties and a generated git.properties file. It lets applications report exactly which version they were built from at runtime.

## Use cases
- embed git commit id into a maven build
- generate git.properties file for spring boot actuator /info endpoint
- show which version an app was built from in distributed deployments
- expose build-time git metadata as maven properties
- fail a build if the git working directory is dirty
- include git describe version info in artifacts

## When to choose
- you build with Maven and want reproducible build provenance
- you need runtime access to the exact commit your binary was built from
- you want git info exposed to Spring Boot's info endpoint via git.properties
- you need to gate builds on repository cleanliness or branch names

## When to avoid
- your project uses Gradle instead of Maven
- you don't use git for version control
- you only need a version number already managed in the pom without git metadata
- you need build info for non-Java toolchains

## Facets
- artifact type: plugin
- maturity: stable
- function: build-tool, version-control, developer-tools, configuration-management
- domain: developer-tools, version-control
- platform: jvm, cross-platform
- tags: maven-plugin, git, build-info, versioning, continuous-delivery, git-properties, build-automation, devops, automation, maven

## Member repositories
- git-commit-id/git-commit-id-maven-plugin (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:26.337601+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:34:15.424199+00:00, confidence not recorded.
  - readme: https://github.com/git-commit-id/git-commit-id-maven-plugin (fetched 2026-08-28T04:05:26.337601+00:00, sha 2d1c40f87e48)
  - homepage: http://www.kto.so (fetched 2026-08-29T11:10:17.290535+00:00, sha db56734bf91b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
