@Mojo(name="check", defaultPhase=VERIFY, requiresDependencyResolution=TEST, threadSafe=true) public class CheckstyleViolationCheckMojo extends AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected CheckstyleExecutor |
checkstyleExecutor |
protected MavenProject |
project
The Maven Project Object.
|
protected List<Resource> |
resources
Specifies the location of the resources to be used for Checkstyle.
|
protected List<Resource> |
testResources
Specifies the location of the test resources to be used for Checkstyle.
|
Constructor and Description |
---|
CheckstyleViolationCheckMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
getLog, getPluginContext, setLog, setPluginContext
@Parameter(defaultValue="${project.resources}", readonly=true) protected List<Resource> resources
@Parameter(defaultValue="${project.testResources}", readonly=true) protected List<Resource> testResources
@Component(role=CheckstyleExecutor.class, hint="default") protected CheckstyleExecutor checkstyleExecutor
@Parameter(defaultValue="${project}", readonly=true, required=true) protected MavenProject project
public void execute() throws MojoExecutionException, MojoFailureException
Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.