Database Scanning
The database is scanned and specific consumers process these artifacts.
Info | ||
---|---|---|
| ||
The database scanning and consumers are no longer present in Archiva 1.4 |
Database Consumers
There are 2 types of database consumers:
- 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
- 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 |