Package org.apache.maven.plugins.pmd
Class AggregatorCpdReport
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.reporting.AbstractMavenReport
org.apache.maven.plugins.pmd.AbstractPmdReport
org.apache.maven.plugins.pmd.CpdReport
org.apache.maven.plugins.pmd.AggregatorCpdReport
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo,org.apache.maven.reporting.MavenMultiPageReport,org.apache.maven.reporting.MavenReport
@Mojo(name="aggregate-cpd",
aggregator=true,
threadSafe=true)
public class AggregatorCpdReport
extends CpdReport
Creates a report for PMD's Copy/Paste Detector (CPD) tool in an aggregator project.
It can also generate a cpd results file in any of these formats: xml, csv or txt.
See Finding duplicated code for more details.
- Since:
- 3.15.0
-
Field Summary
Fields inherited from class org.apache.maven.plugins.pmd.AbstractPmdReport
aggregate, excludeFromFailureFile, filesToProcess, format, includeTests, includeXmlInReports, session, showPmdLog, skipEmptyReport, targetDirectoryFields inherited from class org.apache.maven.reporting.AbstractMavenReport
locale, mojoExecution, outputDirectory, outputFormat, outputTimestamp, project, reactorProjects, remoteProjectRepositories, repoSession, siteDirectory, siteRenderer, siteToolFields inherited from interface org.apache.maven.reporting.MavenReport
CATEGORY_PROJECT_INFORMATION, CATEGORY_PROJECT_REPORTS, ROLEFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionAggregatorCpdReport(org.codehaus.plexus.i18n.I18N i18n, CpdServiceExecutor serviceExecutor) -
Method Summary
Methods inherited from class org.apache.maven.plugins.pmd.CpdReport
canGenerateReport, executeReport, getDescription, getI18nString, getName, getOutputName, getOutputPathMethods inherited from class org.apache.maven.plugins.pmd.AbstractPmdReport
canGenerateReportInternal, getAggregatedProjects, getFilesToProcess, getJdkToolchain, getMojoExecution, getProject, getReactorProjects, isXmlMethods inherited from class org.apache.maven.reporting.AbstractMavenReport
closeReport, constructXrefLocation, execute, generate, generate, getCategoryName, getInputEncoding, getLocale, getOutputDirectory, getOutputEncoding, getReportOutputDirectory, getSink, getSinkFactory, getSiteRenderer, getXrefLocation, isExternalReport, setReportOutputDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
AggregatorCpdReport
@Inject public AggregatorCpdReport(org.codehaus.plexus.i18n.I18N i18n, CpdServiceExecutor serviceExecutor)
-
-
Method Details
-
isAggregator
protected boolean isAggregator()- Overrides:
isAggregatorin classAbstractPmdReport
-