Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Repository Scanning and Indexing
Configuration and Registry Listeners
Database Scanning

The database is scanned and specific consumers process these artifacts.

Database Consumers

There are 2 types of database consumers:

  1. Unprocessed consumers - consumers for those artifacts already in the index that haven't been processed yet, meaning the details about the artifact are not yet processed and stored in the database
  2. Cleanup consumers - consumers for cleaning up the database

These consumers are configured in archiva.xml, under <databaseScanning>. Below are the different types of Database Consumers:

Class

Role Hint

Type

What does it do?

ProjectModelToDatabaseConsumer

updated-db-project

unprocessed consumer

Gets the details of the artifact from the pom and saves it into the database (as a project model)

DatabaseCleanupArtifactConsumer

not-present-remove-db-artifact

cleanup consumer

Cleans the database of artifacts that are no longer in the repository

DatabaseCleanupProjectConsumer

not-present-remove-db-project

cleanup consumer

Cleans the database of project models of artifacts that are no longer in the repository

DatabaseCleanupLuceneConsumer

not-present-remove-indexed

cleanup consumer

Cleans up the index of artifacts that are no longer in the repository

...

Repository Purge

Remove old snapshots from the managed repository based on a criteria: By Number of Days Old and By Retention Count. There is also the option to enable or disable the cleanup of released snapshots from the repository.

...