ai-build-integrity:clean-artifact-digests
Full name:
com.intsof:ai-build-integrity-maven-plugin:0.13.2:clean-artifact-digests
Description:
Removes artifact digest files generated by the generate-artifact-digests goal.
This mojo scans the project's build directory for digest files (sidecar or central) and deletes them. It binds by default to the clean phase and runs on each module.
Note: Unlike the AI instruction file HashCleanMojo which uses executionRootOnly, this mojo runs on each module to ensure cleanup of all digest files across the reactor.
Attributes:
- Requires a Maven project to be executed.
- The goal is thread-safe and supports parallel builds.
- Binds by default to the lifecycle phase:
clean.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<algorithms> |
String[] |
- |
Array of algorithms used during generation. Used to determine which sidecar extensions to clean. Default: SHA-256User Property: ai.integrity.algorithms |
<centralDigestFile> |
String |
- |
Explicit path to the central digest ledger file. User Property: ai.integrity.centralDigestFile |
<cleanAggregateDigests> |
boolean |
- |
If true, also remove aggregate digest files. Default: trueUser Property: ai.integrity.cleanAggregateDigests |
<hashFileMode> |
HashFileMode |
- |
Strategy for storing generated digests (SIDECAR or CENTRAL). Default: SIDECARUser Property: ai.integrity.hashFileMode |
<skip> |
boolean |
- |
If true, skips the execution of the mojo. Accepts both -Dai.integrity.skip=true and the Maven-conventional -Dskip.ai.integrity=true.Default: falseUser Property: ai.integrity.skip |
<skipAlt> |
boolean |
- |
Alternate Maven-conventional skip flag (e.g. -Dskip.ai.integrity=true). Default: falseUser Property: skip.ai.integrity |
Parameter Details
<algorithms>
Array of algorithms used during generation. Used to determine which sidecar extensions to clean.
- Type:
java.lang.String[] - Required:
No - User Property:
ai.integrity.algorithms - Default:
SHA-256
<centralDigestFile>
Explicit path to the central digest ledger file.
- Type:
java.lang.String - Required:
No - User Property:
ai.integrity.centralDigestFile
<cleanAggregateDigests>
If true, also remove aggregate digest files.
- Type:
boolean - Required:
No - User Property:
ai.integrity.cleanAggregateDigests - Default:
true
<hashFileMode>
Strategy for storing generated digests (SIDECAR or CENTRAL).
- Type:
com.intsof.ai.build.integrity.HashFileMode - Required:
No - User Property:
ai.integrity.hashFileMode - Default:
SIDECAR
<skip>
If true, skips the execution of the mojo. Accepts both
-Dai.integrity.skip=true and the Maven-conventional -Dskip.ai.integrity=true.- Type:
boolean - Required:
No - User Property:
ai.integrity.skip - Default:
false
<skipAlt>
Alternate Maven-conventional skip flag (e.g. -Dskip.ai.integrity=true).
- Type:
boolean - Required:
No - User Property:
skip.ai.integrity - Default:
false

