Class ValidatePackageMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.jackrabbit.filevault.maven.packaging.mojo.AbstractValidateMojo
-
- org.apache.jackrabbit.filevault.maven.packaging.mojo.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 Summary
Fields Modifier and Type Field Description protected String
classifier
The given classifier is merged with the ones from parameterclassifiers
.-
Fields inherited from class org.apache.jackrabbit.filevault.maven.packaging.mojo.AbstractValidateMojo
buildContext, csvReportFile, dependencies, failOnValidationWarnings, IGNORE_ARTIFACT, IGNORE_GAV, mapPackageDependencyToMavenGa, mojoExecution, project, repositoryStructurePackages, repositorySystem, resolver, session, validationExecutorFactory
-
-
Constructor Summary
Constructors Constructor Description ValidatePackageMojo(org.eclipse.aether.RepositorySystem repositorySystem, org.sonatype.plexus.build.incremental.BuildContext buildContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doExecute(ValidationMessagePrinter validationHelper)
-
Methods inherited from class org.apache.jackrabbit.filevault.maven.packaging.mojo.AbstractValidateMojo
execute, getEffectiveValidatorSettingsForPackage, getEffectiveValidatorSettingsForPackage, getProjectRelativeFilePath, getRelativeFilePath, shouldSkip
-
-
-
-
Field Detail
-
classifier
@Parameter(property="vault.classifier") protected String classifier
The given classifier is merged with the ones from parameterclassifiers
. All matching attached artifacts are validated (potentially in addition to the main package depending on parameterskipPackageFile
).- Since:
- 1.2.2
-
-
Method Detail
-
doExecute
public void doExecute(ValidationMessagePrinter validationHelper) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
- Specified by:
doExecute
in classAbstractValidateMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
-