Class PluginWrapper

java.lang.Object
org.apache.maven.enforcer.rules.utils.PluginWrapper

public class PluginWrapper extends Object
Author:
Brian Fox
  • 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

      public String getGroupId()
    • getArtifactId

    • getVersion

      public String getVersion()
    • getSource

      public String getSource()