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 informations required for a report plugin.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class used to create ReportPlugin instances. -
Method Summary
Modifier 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.ConfigurationContainer
getConfiguration, getInherited, getLocation, isInherited, newBuilder, newBuilderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.model.InputLocationTracker
getLocation
-
Method Details
-
getGroupId
The group ID of the reporting plugin in the repository.- Returns:
- a
String
-
getArtifactId
The artifact ID of the reporting plugin in the repository.- Returns:
- a
String
-
getVersion
The 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
-
getReportSets
Multiple specifications of a set of reports, each having (possibly) different configuration. This is the reporting parallel to anexecutionin the build.- Returns:
- a
List<ReportSet>
-
with
Creates a new builder with this object as the basis.- Overrides:
within classConfigurationContainer- Returns:
- a
Builder
-
withInherited
Creates a newReportPlugininstance using the specified inherited.- Overrides:
withInheritedin classConfigurationContainer- Parameters:
inherited- the newStringto use- Returns:
- a
ReportPluginwith the specified inherited
-
withConfiguration
Creates a newReportPlugininstance using the specified configuration.- Overrides:
withConfigurationin classConfigurationContainer- Parameters:
configuration- the newXmlNodeto use- Returns:
- a
ReportPluginwith the specified configuration
-
withGroupId
Creates a newReportPlugininstance using the specified groupId.- Parameters:
groupId- the newStringto use- Returns:
- a
ReportPluginwith the specified groupId
-
withArtifactId
Creates a newReportPlugininstance using the specified artifactId.- Parameters:
artifactId- the newStringto use- Returns:
- a
ReportPluginwith the specified artifactId
-
withVersion
Creates a newReportPlugininstance using the specified version.- Parameters:
version- the newStringto use- Returns:
- a
ReportPluginwith the specified version
-
withReportSets
Creates a newReportPlugininstance using the specified reportSets.- Parameters:
reportSets- the newCollection<ReportSet>to use- Returns:
- a
ReportPluginwith the specified reportSets
-
newInstance
Creates a newReportPlugininstance. Equivalent tonewInstance(true).- Returns:
- a new
ReportPlugin - See Also:
-
newInstance
Creates 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
-
newBuilder
Creates a newReportPluginbuilder instance. Equivalent tonewBuilder(true).- Returns:
- a new
Builder - See Also:
-
newBuilder
Creates a newReportPluginbuilder instance using default values or not.- Parameters:
withDefaults- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newReportPluginbuilder instance using the specified object as a basis. Equivalent tonewBuilder(from, false).- Parameters:
from- theReportPlugininstance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newReportPluginbuilder instance using the specified object as a basis.- Parameters:
from- theReportPlugininstance to use as a basisforceCopy- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-
flushReportSetMap
public 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 repositoryartifactId- The artifact ID of the reporting plugin in the repository- Returns:
- the key of the report plugin, ie
groupId:artifactId
-