Class PluginWrapper
java.lang.Object
org.apache.maven.enforcer.rules.utils.PluginWrapper
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
PluginWrapper
(org.apache.maven.model.Plugin plugin) private
PluginWrapper
(org.apache.maven.model.ReportPlugin plugin) -
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.
-
Field Details
-
groupId
-
artifactId
-
version
-
locationTracker
private final org.apache.maven.model.InputLocationTracker locationTracker
-
-
Constructor Details
-
PluginWrapper
private PluginWrapper(org.apache.maven.model.Plugin plugin) -
PluginWrapper
private PluginWrapper(org.apache.maven.model.ReportPlugin plugin)
-
-
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
-