@Mojo(name="check",
defaultPhase=VERIFY,
threadSafe=true)
public class CheckMojo
extends TidyMojo
pom.xml is tidy. Fails the build if mvn tidy:pom would
create a different pom.xml than the current one.| Constructor and Description |
|---|
CheckMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeForPom(String pom)
Perform whatever build-process behavior this
Mojo implements using the specified POM. |
execute, getPomFile, tidyprotected void executeForPom(String pom) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
TidyMojoMojo implements using the specified POM.executeForPom in class TidyMojopom - 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.Copyright © 2011–2022 MojoHaus. All rights reserved.