Package org.glassfish.spec.maven
Class CheckDistributionMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.glassfish.spec.maven.CheckDistributionMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="check-distribution",
requiresProject=true,
threadSafe=true,
defaultPhase=PACKAGE)
public final class CheckDistributionMojo
extends org.apache.maven.plugin.AbstractMojo
Check a set of spec artifact in a staging directory.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
The directory containing the spec artifacts to process.private String
Exclude pattern.private String
Include pattern.The specification configurations.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
includes
Include pattern. -
excludes
Exclude pattern. -
dir
The directory containing the spec artifacts to process. -
specs
The specification configurations.
-
-
Constructor Details
-
CheckDistributionMojo
public CheckDistributionMojo()
-
-
Method Details
-
getSpec
Find or create the specification configuration for the given artifact.- Parameters:
file
- the artifact file to match- Returns:
- the spec configuration
- Throws:
IOException
- if an error occurs while reading the JAR file entries
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-