Class ValidationMessagePrinter

    • Constructor Detail

      • ValidationMessagePrinter

        public ValidationMessagePrinter​(@NotNull
                                        @NotNull org.apache.maven.plugin.logging.Log log,
                                        @Nullable
                                        @Nullable Path csvReportFile)
                                 throws IOException
        Throws:
        IOException
    • Method Detail

      • printMessages

        public void printMessages​(Collection<org.apache.jackrabbit.vault.validation.ValidationViolation> violations,
                                  org.sonatype.plexus.build.incremental.BuildContext buildContext,
                                  Path baseDirectory)
                           throws IOException
        Parameters:
        violations -
        buildContext -
        baseDirectory - the directory to which all absolute paths should be made relative (e.g. the Maven basedir or the content package path)
        Throws:
        IOException
      • printUsedValidators

        public void printUsedValidators​(org.apache.maven.plugin.logging.Log log,
                                        org.apache.jackrabbit.vault.validation.ValidationExecutor executor,
                                        org.apache.jackrabbit.vault.validation.spi.ValidationContext context,
                                        boolean printUnusedValidators)
      • clearPreviousValidationMessages

        public void clearPreviousValidationMessages​(org.sonatype.plexus.build.incremental.BuildContext context,
                                                    File file)
      • failBuildInCaseOfViolations

        public void failBuildInCaseOfViolations​(boolean failForWarning)
                                         throws org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoFailureException