Package org.apache.rat.mp
Class RatCheckMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.rat.mp.AbstractRatMojo
org.apache.rat.mp.RatCheckMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="check",
defaultPhase=VALIDATE,
threadSafe=true)
public class RatCheckMojo
extends AbstractRatMojo
Run Rat to perform a violation check.
-
Field Summary
Fields inherited from class org.apache.rat.mp.AbstractRatMojo
project, skip
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
check(ClaimStatistic statistics, ReportConfiguration config)
void
execute()
Invoked by Maven to execute the Mojo.protected ReportConfiguration
Methods inherited from class org.apache.rat.mp.AbstractRatMojo
getDefaultsBuilder, getProject, logLicenses
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
RatCheckMojo
public RatCheckMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureExceptionInvoked by Maven to execute the Mojo.- Throws:
org.apache.maven.plugin.MojoFailureException
- An error in the plugin configuration was detected.org.apache.maven.plugin.MojoExecutionException
- Another error occurred while executing the plugin.
-
check
protected void check(ClaimStatistic statistics, ReportConfiguration config) throws org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoFailureException
-
getConfiguration
protected ReportConfiguration getConfiguration() throws org.apache.maven.plugin.MojoExecutionException- Overrides:
getConfiguration
in classAbstractRatMojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
-