Package org.apache.rat.mp
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 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.Fields inherited from class org.apache.rat.plugin.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 org.apache.rat.plugin.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.plugin.Mojo
execute
-
Field Details
-
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
Reads values for the Arg.- Parameters:
arg- The Arg to get the values for.- Returns:
- The list of values or an empty list.
-
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
-