plugin: AbstractCheckMojo: minor tidy-up
This commit is contained in:
parent
a67a64e851
commit
84269c1dd6
1 changed files with 9 additions and 4 deletions
|
@ -48,6 +48,8 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
|||
|
||||
private static final String KEMITIX_ARTIFACTID = "kemitix-checkstyle-ruleset";
|
||||
|
||||
private final CheckstyleExecutor checkstyleExecutor;
|
||||
|
||||
@Setter
|
||||
@Parameter(defaultValue = "${project}", readonly = true)
|
||||
private MavenProject mavenProject;
|
||||
|
@ -58,14 +60,17 @@ abstract class AbstractCheckMojo extends AbstractMojo {
|
|||
|
||||
@Setter
|
||||
@Parameter(defaultValue = "${localRepository}", readonly = true, required = true)
|
||||
private ArtifactRepository artifactRepository = null;
|
||||
private ArtifactRepository artifactRepository;
|
||||
|
||||
@Setter
|
||||
@Component
|
||||
private BuildPluginManager pluginManager = null;
|
||||
|
||||
private final CheckstyleExecutor checkstyleExecutor;
|
||||
private BuildPluginManager pluginManager;
|
||||
|
||||
/**
|
||||
* Create a check mojo.
|
||||
*
|
||||
* @param checkstyleExecutor the executor to invoke the checkstyle plugin
|
||||
*/
|
||||
AbstractCheckMojo(final CheckstyleExecutor checkstyleExecutor) {
|
||||
this.checkstyleExecutor = checkstyleExecutor;
|
||||
checkstyleExecutor.setLog(getLog());
|
||||
|
|
Loading…
Reference in a new issue