Package org.apache.maven.api.model
Class ReportPlugin
java.lang.Object
org.apache.maven.api.model.ConfigurationContainer
org.apache.maven.api.model.ReportPlugin
- All Implemented Interfaces:
- Serializable,- InputLocationTracker
@Experimental
@Generated
@ThreadSafe
@Immutable
public class ReportPlugin
extends ConfigurationContainer
implements Serializable, InputLocationTracker
The 
<plugin> element in <reporting><plugins> contains information required for a report plugin.- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ReportPlugin instances.
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringconstructKey(String groupId, String artifactId) voidReset thereportSetMapfield tonullThe artifact ID of the reporting plugin in the repository.The group ID of the reporting plugin in the repository.getKey()Multiple specifications of a set of reports, each having (possibly) different configuration.The version of the reporting plugin to be used.static ReportPlugin.BuilderCreates a newReportPluginbuilder instance.static ReportPlugin.BuildernewBuilder(boolean withDefaults) Creates a newReportPluginbuilder instance using default values or not.static ReportPlugin.BuildernewBuilder(ReportPlugin from) Creates a newReportPluginbuilder instance using the specified object as a basis.static ReportPlugin.BuildernewBuilder(ReportPlugin from, boolean forceCopy) Creates a newReportPluginbuilder instance using the specified object as a basis.static ReportPluginCreates a newReportPlugininstance.static ReportPluginnewInstance(boolean withDefaults) Creates a newReportPlugininstance using default values or not.with()Creates a new builder with this object as the basis.withArtifactId(String artifactId) Creates a newReportPlugininstance using the specified artifactId.withConfiguration(XmlNode configuration) Creates a newReportPlugininstance using the specified configuration.withGroupId(String groupId) Creates a newReportPlugininstance using the specified groupId.withInherited(String inherited) Creates a newReportPlugininstance using the specified inherited.withReportSets(Collection<ReportSet> reportSets) Creates a newReportPlugininstance using the specified reportSets.withVersion(String version) Creates a newReportPlugininstance using the specified version.Methods inherited from class org.apache.maven.api.model.ConfigurationContainergetConfiguration, getInherited, getLocation, isInherited, newBuilder, newBuilderMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTrackergetLocation
- 
Method Details- 
getGroupIdThe group ID of the reporting plugin in the repository.- Returns:
- a String
 
- 
getArtifactIdThe artifact ID of the reporting plugin in the repository.- Returns:
- a String
 
- 
getVersionThe version of the reporting plugin to be used. Starting with Maven 3, if no version is defined explicitly, version is searched inbuild/pluginsthen inbuild/pluginManagement.- Returns:
- a String
 
- 
getReportSetsMultiple specifications of a set of reports, each having (possibly) different configuration. This is the reporting parallel to anexecutionin the build.- Returns:
- a List<ReportSet>
 
- 
withCreates a new builder with this object as the basis.- Overrides:
- within class- ConfigurationContainer
- Returns:
- a Builder
 
- 
withInheritedCreates a newReportPlugininstance using the specified inherited.- Overrides:
- withInheritedin class- ConfigurationContainer
- Parameters:
- inherited- the new- Stringto use
- Returns:
- a ReportPluginwith the specified inherited
 
- 
withConfigurationCreates a newReportPlugininstance using the specified configuration.- Overrides:
- withConfigurationin class- ConfigurationContainer
- Parameters:
- configuration- the new- XmlNodeto use
- Returns:
- a ReportPluginwith the specified configuration
 
- 
withGroupIdCreates a newReportPlugininstance using the specified groupId.- Parameters:
- groupId- the new- Stringto use
- Returns:
- a ReportPluginwith the specified groupId
 
- 
withArtifactIdCreates a newReportPlugininstance using the specified artifactId.- Parameters:
- artifactId- the new- Stringto use
- Returns:
- a ReportPluginwith the specified artifactId
 
- 
withVersionCreates a newReportPlugininstance using the specified version.- Parameters:
- version- the new- Stringto use
- Returns:
- a ReportPluginwith the specified version
 
- 
withReportSetsCreates a newReportPlugininstance using the specified reportSets.- Parameters:
- reportSets- the new- Collection<ReportSet>to use
- Returns:
- a ReportPluginwith the specified reportSets
 
- 
newInstanceCreates a newReportPlugininstance. Equivalent tonewInstance(true).- Returns:
- a new ReportPlugin
- See Also:
 
- 
newInstanceCreates a newReportPlugininstance using default values or not. Equivalent tonewBuilder(withDefaults).build().- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new ReportPlugin
 
- 
newBuilderCreates a newReportPluginbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new Builder
- See Also:
 
- 
newBuilderCreates a newReportPluginbuilder instance using default values or not.- Parameters:
- withDefaults- the boolean indicating whether default values should be used
- Returns:
- a new Builder
 
- 
newBuilderCreates a newReportPluginbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
- from- the- ReportPlugininstance to use as a basis
- Returns:
- a new Builder
 
- 
newBuilderCreates a newReportPluginbuilder instance using the specified object as a basis.- Parameters:
- from- the- ReportPlugininstance to use as a basis
- forceCopy- the boolean indicating if a copy should be forced
- Returns:
- a new Builder
 
- 
flushReportSetMappublic void flushReportSetMap()Reset thereportSetMapfield tonull
- 
getReportSetsAsMap- Returns:
- a Map of reportSets field with ReportSet#getId()as key
- See Also:
 
- 
getKey- Returns:
- the key of the report plugin, ie groupId:artifactId
 
- 
constructKey- Parameters:
- groupId- The group ID of the plugin in the repository
- artifactId- The artifact ID of the reporting plugin in the repository
- Returns:
- the key of the report plugin, ie groupId:artifactId
 
 
-