Class PluginWrapper
java.lang.Object
org.apache.maven.enforcer.rules.utils.PluginWrapper
- Author:
- Brian Fox
-
Method Summary
Modifier and TypeMethodDescriptionstatic List
<PluginWrapper> addAll
(List<? extends org.apache.maven.model.InputLocationTracker> plugins, boolean banMavenDefaults) isVersionFromDefaultLifecycleBindings
(org.apache.maven.model.InputLocationTracker o) Whether the version is coming from the default lifecycle bindings.isVersionFromSuperpom
(org.apache.maven.model.InputLocationTracker o) Whether the version is coming from the super POM.
-
Method Details
-
addAll
public static List<PluginWrapper> addAll(List<? extends org.apache.maven.model.InputLocationTracker> plugins, boolean banMavenDefaults) -
isVersionFromDefaultLifecycleBindings
public static Optional<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:
-
isVersionFromSuperpom
public static Optional<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:
-
getGroupId
-
getArtifactId
-
getVersion
-
getSource
-