aquasecurity/trivy-java-db

41

stars

37

commits

Go

primary language

May 13, 2026

updated

README

trivy-java-db

Overview

trivy-java-db builds a SQLite database from maven-index repository data, storing ArtifactID, GroupID, Version and sha1 for jar files.

The DB is used in Trivy to discover information about jars without GAV inside them.

Update interval

Every day at 00:00

Download the java indexes database

You can download the actual compiled database via Trivy or Oras CLI.

Trivy:

TRIVY_TEMP_DIR=$(mktemp -d)
trivy --cache-dir $TRIVY_TEMP_DIR image --download-java-db-only
tar -cf ./javadb.tar.gz -C $TRIVY_TEMP_DIR/java-db metadata.json trivy-java.db
rm -rf $TRIVY_TEMP_DIR

oras >= v0.13.0:

$ oras pull ghcr.io/aquasecurity/trivy-java-db:1

oras < v0.13.0:

$ oras pull -a ghcr.io/aquasecurity/trivy-java-db:1

The database can be used for Air-Gapped Environment.

Contributors

DmitriyLewen

26 commits

knqyf263

9 commits

oatovar

1 commits

rdjones517

1 commits

aquasecurity/trivy-java-db

41

stars

37

commits

Go

primary language

May 13, 2026

updated

README

trivy-java-db

Overview

trivy-java-db builds a SQLite database from maven-index repository data, storing ArtifactID, GroupID, Version and sha1 for jar files.

The DB is used in Trivy to discover information about jars without GAV inside them.

Update interval

Every day at 00:00

Download the java indexes database

You can download the actual compiled database via Trivy or Oras CLI.

Trivy:

TRIVY_TEMP_DIR=$(mktemp -d)
trivy --cache-dir $TRIVY_TEMP_DIR image --download-java-db-only
tar -cf ./javadb.tar.gz -C $TRIVY_TEMP_DIR/java-db metadata.json trivy-java.db
rm -rf $TRIVY_TEMP_DIR

oras >= v0.13.0:

$ oras pull ghcr.io/aquasecurity/trivy-java-db:1

oras < v0.13.0:

$ oras pull -a ghcr.io/aquasecurity/trivy-java-db:1

The database can be used for Air-Gapped Environment.

Contributors

DmitriyLewen

26 commits

knqyf263

9 commits

oatovar

1 commits

rdjones517

1 commits

Languages

Go

73.9%

Shell

23.6%

Makefile

2.5%