Class PluginWrapper
- java.lang.Object
-
- org.apache.maven.enforcer.rules.utils.PluginWrapper
-
public class PluginWrapper extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringartifactIdprivate java.lang.StringgroupIdprivate org.apache.maven.model.InputLocationTrackerlocationTrackerprivate java.lang.Stringversion
-
Constructor Summary
Constructors Modifier Constructor Description privatePluginWrapper(org.apache.maven.model.Plugin plugin)privatePluginWrapper(org.apache.maven.model.ReportPlugin plugin)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.List<PluginWrapper>addAll(java.util.List<? extends org.apache.maven.model.InputLocationTracker> plugins, boolean banMavenDefaults)java.lang.StringgetArtifactId()java.lang.StringgetGroupId()java.lang.StringgetSource()java.lang.StringgetVersion()static java.util.Optional<java.lang.Boolean>isVersionFromDefaultLifecycleBindings(org.apache.maven.model.InputLocationTracker o)Whether the version is coming from the default lifecycle bindings.static java.util.Optional<java.lang.Boolean>isVersionFromSuperpom(org.apache.maven.model.InputLocationTracker o)Whether the version is coming from the super POM.
-
-
-
Method Detail
-
addAll
public static java.util.List<PluginWrapper> addAll(java.util.List<? extends org.apache.maven.model.InputLocationTracker> plugins, boolean banMavenDefaults)
-
isVersionFromDefaultLifecycleBindings
public static java.util.Optional<java.lang.Boolean> isVersionFromDefaultLifecycleBindings(org.apache.maven.model.InputLocationTracker o)
Whether the version is coming from the default lifecycle bindings. Cannot be determined before Maven 3.6.1- Parameters:
o- either Plugin or ReportPlugin- Returns:
- null if untraceable, otherwise its matching value
- See Also:
- MNG-6600
-
isVersionFromSuperpom
public static java.util.Optional<java.lang.Boolean> isVersionFromSuperpom(org.apache.maven.model.InputLocationTracker o)
Whether the version is coming from the super POM. Cannot be determined before Maven 3.6.1- Parameters:
o- either Plugin or ReportPlugin- Returns:
- null if untraceable, otherwise its matching value
- See Also:
- MNG-6593
-
getGroupId
public java.lang.String getGroupId()
-
getArtifactId
public java.lang.String getArtifactId()
-
getVersion
public java.lang.String getVersion()
-
getSource
public java.lang.String getSource()
-
-