public abstract class TidyMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.project.MavenProject |
project
The Maven Project.
|
protected boolean |
skip
Set this to 'true' to skip execution.
|
| Constructor and Description |
|---|
TidyMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected abstract void |
executeForPom(String pom)
Perform whatever build-process behavior this
Mojo implements using the specified POM. |
protected File |
getPomFile()
Returns the file of the POM.
|
protected String |
tidy(String pom)
Tidy the given POM.
|
@Parameter(defaultValue="${project}",
required=true,
readonly=true)
protected org.apache.maven.project.MavenProject project
@Parameter(property="tidy.skip",
defaultValue="false")
protected boolean skip
protected abstract void executeForPom(String pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
Mojo implements using the specified POM.pom - the project's POM.org.apache.maven.plugin.MojoExecutionException - if an unexpected problem occurs.
Throwing this exception causes a "BUILD ERROR" message to be displayed.org.apache.maven.plugin.MojoFailureException - if an expected problem (such as a compilation failure) occurs.
Throwing this exception causes a "BUILD FAILURE" message to be displayed.public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected File getPomFile()
Copyright © 2011–2017 MojoHaus. All rights reserved.