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.
    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 given in parameter classifiers and all matching attached artifacts are validated (potentially in addition to the one given in packageFile)
        Since:
        1.1.10
    • Constructor Detail

      • ValidatePackageMojo

        public ValidatePackageMojo()
    • Method Detail

      • doExecute

        public void doExecute​(ValidationHelper 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