Package com.sciencesakura.codenarc.maven
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
ConstructorsConstructorDescriptionCheckMojo(org.apache.maven.project.MavenProject project) Constructs a newCheckMojo. -
Method Summary
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CheckMojo
@Inject public CheckMojo(org.apache.maven.project.MavenProject project) Constructs a newCheckMojo.- Parameters:
project- the Maven project
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-