Class CheckModuleMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="check-module",
          requiresProject=true,
          defaultPhase=PACKAGE)
    public final class CheckModuleMojo
    extends org.apache.maven.plugin.AbstractMojo
    Maven Goal to enforce spec rules and fail the build.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean ignoreErrors
      Ignore failures.
      private java.io.File module
      Module to verify.
      private org.apache.maven.project.MavenProject project
      The maven project.
      private Spec spec
      Spec.
      private java.lang.String specMode
      Mode.
      • Fields inherited from interface org.apache.maven.plugin.Mojo

        ROLE
    • Constructor Summary

      Constructors 
      Constructor Description
      CheckModuleMojo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute()  
      • 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 Detail

      • project

        @Parameter(defaultValue="${project}",
                   required=true,
                   readonly=true)
        private org.apache.maven.project.MavenProject project
        The maven project.
      • module

        @Parameter(property="module")
        private java.io.File module
        Module to verify.
      • ignoreErrors

        @Parameter(property="ignoreErrors",
                   defaultValue="false")
        private boolean ignoreErrors
        Ignore failures.
      • specMode

        @Parameter(property="specMode",
                   defaultValue="jakarta")
        private java.lang.String specMode
        Mode. Allowed values are "javaee", "jakarta"
      • spec

        @Parameter(property="spec",
                   required=true)
        private Spec spec
        Spec.
    • Constructor Detail

      • CheckModuleMojo

        public CheckModuleMojo()
    • Method Detail

      • 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