Class EnforcerMojo

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

    @Mojo(name="enforce",
          defaultPhase=PROCESS_CLASSES,
          requiresDependencyResolution=COMPILE)
    public class EnforcerMojo
    extends org.apache.maven.plugin.AbstractMojo
    Enforces the Restricted access modifier annotations.
    Author:
    Kohsuke Kawaguchi
    • Field Detail

      • project

        @Parameter(property="project",
                   readonly=true)
        protected org.apache.maven.project.MavenProject project
        The maven project.
    • Constructor Detail

      • EnforcerMojo

        public EnforcerMojo()
    • 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