Class ValidatePackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.jackrabbit.filevault.maven.packaging.AbstractValidateMojo
-
- org.apache.jackrabbit.filevault.maven.packaging.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 AbstractValidateMojoValidates 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 Summary
Fields Modifier and Type Field Description protected StringclassifierThe given classifier is merged with the ones given in parameterclassifiersand all matching attached artifacts are validated (potentially in addition to the one given inpackageFile)-
Fields inherited from class org.apache.jackrabbit.filevault.maven.packaging.AbstractValidateMojo
buildContext, csvReportFile, dependencies, failOnValidationWarnings, IGNORE_ARTIFACT, IGNORE_GAV, mapPackageDependencyToMavenGa, mojoExecution, project, repositoryStructurePackages, repositorySystem, resolutionErrorHandler, resolver, session, validationExecutorFactory
-
-
Constructor Summary
Constructors Constructor Description ValidatePackageMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoExecute(ValidationHelper validationHelper)-
Methods inherited from class org.apache.jackrabbit.filevault.maven.packaging.AbstractValidateMojo
execute, getProjectRelativeFilePath, getValidatorSettingsForPackage, getValidatorSettingsForPackage, shouldSkip
-
-
-
-
Field Detail
-
classifier
@Parameter(property="vault.classifier") protected String classifier
The given classifier is merged with the ones given in parameterclassifiersand all matching attached artifacts are validated (potentially in addition to the one given inpackageFile)- Since:
- 1.1.10
-
-
Method Detail
-
doExecute
public void doExecute(ValidationHelper validationHelper) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
doExecutein classAbstractValidateMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-