Class IntegrityFailureAdvice


  • public final class IntegrityFailureAdvice
    extends Object
    Formats and logs actionable recovery guidance when integrity verification fails.

    Verification still fails the build when failOnError is true; this class only improves the developer-facing failure UX so intentional edits are easy to re-seal or temporarily skip.

    • Field Detail

      • SKIP_PROPERTY

        public static final String SKIP_PROPERTY
        Primary skip system property documented for end users.
        See Also:
        Constant Field Values
      • SKIP_PROPERTY_ALT

        public static final String SKIP_PROPERTY_ALT
        Alternate Maven-conventional skip system property.
        See Also:
        Constant Field Values
    • Method Detail

      • logHashVerificationRecovery

        public static void logHashVerificationRecovery​(org.apache.maven.plugin.logging.Log log)
        Logs recovery advice for AI resource hash verification failures (verify-hashes).
        Parameters:
        log - the Maven plugin logger; no-op when null
      • logArtifactDigestVerificationRecovery

        public static void logArtifactDigestVerificationRecovery​(org.apache.maven.plugin.logging.Log log)
        Logs recovery advice for artifact digest verification failures ( verify-artifact-digests).
        Parameters:
        log - the Maven plugin logger; no-op when null