Class CheckMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.sciencesakura.codenarc.maven.CheckMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="check", requiresDependencyResolution=TEST, defaultPhase=VERIFY) public class CheckMojo extends org.apache.maven.plugin.AbstractMojo
Runs CodeNarc analysis on the project's source code. Call mvn codenarc:check to execute the analysis.
Author:
sciencesakura
  • Field Summary

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

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
    CheckMojo(org.apache.maven.project.MavenProject project)
    Constructs a new CheckMojo.
  • Method Summary

    Modifier and Type
    Method
    Description
    void

    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
  • Constructor Details

    • CheckMojo

      @Inject public CheckMojo(org.apache.maven.project.MavenProject project)
      Constructs a new CheckMojo.
      Parameters:
      project - the Maven project
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoFailureException
      Throws:
      org.apache.maven.plugin.MojoFailureException