Package org.apache.maven.plugin.plugin
Class PluginReport.PluginOverviewRenderer
java.lang.Object
org.apache.maven.reporting.AbstractMavenReportRenderer
org.apache.maven.plugin.plugin.PluginReport.PluginOverviewRenderer
- All Implemented Interfaces:
org.apache.maven.reporting.MavenReportRenderer
- Enclosing class:
- PluginReport
static class PluginReport.PluginOverviewRenderer
extends org.apache.maven.reporting.AbstractMavenReportRenderer
Generates an overview page with the list of goals
and a link to the goal's page.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Localeprivate final org.apache.maven.plugin.descriptor.PluginDescriptorprivate final org.apache.maven.project.MavenProjectprivate final RequirementsFields inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
sink -
Constructor Summary
ConstructorsConstructorDescriptionPluginOverviewRenderer(org.apache.maven.project.MavenProject project, Requirements requirements, org.apache.maven.doxia.sink.Sink sink, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor, Locale locale) -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringdiscoverJdkRequirement(org.apache.maven.project.MavenProject project, Requirements requirements) use configured jdk requirement usetargetconfiguration oforg.apache.maven.plugins:maven-compiler-pluginusetargetconfiguration oforg.apache.maven.plugins:maven-compiler-plugininpluginManagementusemaven.compiler.targetpropertyprivate static StringdiscoverMavenRequirement(org.apache.maven.project.MavenProject project, Requirements requirements) Try to lookup on the Maven prerequisites property.private static org.apache.maven.model.PlugingetCompilerPlugin(Map<String, org.apache.maven.model.Plugin> pluginsAsMap) private static StringgetPluginParameter(org.apache.maven.model.Plugin plugin, String parameter) getTitle()voidprivate voidrenderUsageSection(boolean hasMavenReport) Render the section about the usage of the plugin.Methods inherited from class org.apache.maven.reporting.AbstractMavenReportRenderer
createLinkPatternedText, endSection, endTable, javaScript, link, linkPatternedText, paragraph, propertiesToString, render, startSection, startTable, startTable, tableCaption, tableCell, tableCell, tableHeader, tableHeaderCell, tableRow, text, verbatimLink, verbatimText
-
Field Details
-
project
private final org.apache.maven.project.MavenProject project -
requirements
-
pluginDescriptor
private final org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor -
locale
-
-
Constructor Details
-
PluginOverviewRenderer
PluginOverviewRenderer(org.apache.maven.project.MavenProject project, Requirements requirements, org.apache.maven.doxia.sink.Sink sink, org.apache.maven.plugin.descriptor.PluginDescriptor pluginDescriptor, Locale locale) - Parameters:
project- not nullrequirements- not nullsink- not nullpluginDescriptor- not nulllocale- not null
-
-
Method Details
-
getTitle
- Specified by:
getTitlein interfaceorg.apache.maven.reporting.MavenReportRenderer- Specified by:
getTitlein classorg.apache.maven.reporting.AbstractMavenReportRenderer
-
renderBody
public void renderBody()- Specified by:
renderBodyin classorg.apache.maven.reporting.AbstractMavenReportRenderer
-
renderUsageSection
private void renderUsageSection(boolean hasMavenReport) Render the section about the usage of the plugin.- Parameters:
hasMavenReport- If the plugin has a report or not
-
discoverMavenRequirement
private static String discoverMavenRequirement(org.apache.maven.project.MavenProject project, Requirements requirements) Try to lookup on the Maven prerequisites property. If not specified, uses the value defined by the user.- Parameters:
project- not nullrequirements- not null- Returns:
- the Maven version
-
discoverJdkRequirement
private static String discoverJdkRequirement(org.apache.maven.project.MavenProject project, Requirements requirements) - use configured jdk requirement
- use
targetconfiguration oforg.apache.maven.plugins:maven-compiler-plugin - use
targetconfiguration oforg.apache.maven.plugins:maven-compiler-plugininpluginManagement - use
maven.compiler.targetproperty
- Parameters:
project- not nullrequirements- not null- Returns:
- the JDK version
-
getCompilerPlugin
-
getPluginParameter
-