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

    Fields
    Modifier and Type
    Field
    Description
    private File
    The directory containing the spec artifacts to process.
    private String
    Exclude pattern.
    private String
    Include pattern.
    private List<Spec>
    The specification configurations.

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    private Spec
    getSpec(File file)
    Find or create the specification configuration for the given artifact.

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • includes

      @Parameter(property="includes", defaultValue="javax*.jar") private String includes
      Include pattern.
    • excludes

      @Parameter(property="excludes") private String excludes
      Exclude pattern.
    • dir

      @Parameter(property="dir", required=true) private File dir
      The directory containing the spec artifacts to process.
    • specs

      @Parameter(property="specs", required=true) private List<Spec> specs
      The specification configurations.
  • Constructor Details

    • CheckDistributionMojo

      public CheckDistributionMojo()
  • Method Details

    • getSpec

      private Spec getSpec(File file) throws IOException
      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