Class ValidatePackageMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="validate-package",
          defaultPhase=VERIFY,
          requiresDependencyResolution=COMPILE,
          requiresProject=false,
          threadSafe=true)
    public class ValidatePackageMojo
    extends AbstractValidateMojo
    Validates a package (and optionally in addition all attached packages with the given classifiers) with all registered validators.

    This goal is executed/bound by default for Maven modules of type content-package.

    Since:
    1.1.0
    See Also:
    Validators
    • Field Detail

      • classifier

        @Parameter(property="vault.classifier")
        protected String classifier
        The given classifier is merged with the ones from parameter classifiers. All matching attached artifacts are validated (potentially in addition to the main package depending on parameter skipPackageFile).
        Since:
        1.2.2
    • Constructor Detail

      • ValidatePackageMojo

        public ValidatePackageMojo()
    • Method Detail

      • doExecute

        public void doExecute​(ValidationMessagePrinter validationHelper)
                       throws org.apache.maven.plugin.MojoExecutionException,
                              org.apache.maven.plugin.MojoFailureException
        Specified by:
        doExecute in class AbstractValidateMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException