Class AbstractRatMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.rat.plugin.BaseRatMojo
org.apache.rat.mp.AbstractRatMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
RatCheckMojo, RatReportMojo
Abstract base class for Mojos, which are running Rat.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FileThe base directory, in which to search for files.protected org.apache.maven.project.MavenProjectHolds the maven-internal project to allow resolution of artifact properties during mojo runs.protected booleanWill skip the plugin execution, e.g. for technical builds that do not take license compliance into account.protected booleanSpecifies the verbose output.Fields inherited from class BaseRatMojo
argsFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ReportConfigurationprotected Defaults.Builderprotected org.apache.maven.project.MavenProjectReads values for the Arg.protected voidlogLicenses(Collection<ILicense> licenses) protected voidRemoves all values for an Arg.voidsetAddDefaultLicenses(boolean addDefaultLicenses) Deprecated.Deprecated for removal since 0.17: Use <configurationNoDefaults> instead (note the change of state).Methods inherited from class BaseRatMojo
addArg, addArg, args, createName, getArg, removeArg, setAddLicense, setArg, setConfig, setConfigs, setConfigurationNoDefaults, setCopyright, setCounterMax, setCounterMaxs, setCounterMin, setCounterMins, setDryRun, setEditCopyright, setEditLicense, setEditOverwrite, setExclude, setExcludeFile, setExcludes, setForce, setHelpLicenses, setInclude, setIncludes, setIncludesFile, setInputExclude, setInputExcludeFile, setInputExcludeParsedScm, setInputExcludeParsedScms, setInputExcludes, setInputExcludeSize, setInputExcludeStd, setInputExcludeStds, setInputInclude, setInputIncludeFile, setInputIncludes, setInputIncludeStd, setInputIncludeStds, setInputSource, setInputSources, setLicenseFamiliesApproved, setLicenseFamiliesApprovedFile, setLicenseFamiliesDenied, setLicenseFamiliesDeniedFile, setLicenses, setLicenses, setLicensesApproved, setLicensesApprovedFile, setLicensesDenied, setLicensesDeniedFile, setListFamilies, setListLicenses, setNoDefaultLicenses, setOut, setOutputArchive, setOutputFamilies, setOutputFile, setOutputLicenses, setOutputStandard, setOutputStyle, setScanHiddenDirectories, setStylesheet, setXml, toKebabForm, unsupportedArgsMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
basedir
The base directory, in which to search for files. -
verbose
@Parameter(property="rat.verbose", defaultValue="false") protected boolean verboseSpecifies the verbose output.- Since:
- 0.8
-
skip
@Parameter(property="rat.skip", defaultValue="false") protected boolean skipWill skip the plugin execution, e.g. for technical builds that do not take license compliance into account.- Since:
- 0.11
-
project
@Parameter(defaultValue="${project}", required=true, readonly=true) protected org.apache.maven.project.MavenProject projectHolds the maven-internal project to allow resolution of artifact properties during mojo runs.
-
-
Constructor Details
-
AbstractRatMojo
protected AbstractRatMojo()
-
-
Method Details
-
setAddDefaultLicenses
@Deprecated @Parameter(property="rat.addDefaultLicenses", name="addDefaultLicenses") public void setAddDefaultLicenses(boolean addDefaultLicenses) Deprecated.Deprecated for removal since 0.17: Use <configurationNoDefaults> instead (note the change of state).Whether to add the default list of licenses. -
getProject
protected org.apache.maven.project.MavenProject getProject()- Returns:
- the Maven project.
-
getDefaultsBuilder
-
getValues
-
removeKey
Removes all values for an Arg.- Parameters:
arg- The arg to remove values for.
-
getConfiguration
protected ReportConfiguration getConfiguration() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
logLicenses
-