Class PluginWrapper

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

public class PluginWrapper extends Object
  • Field Details

    • groupId

      private final String groupId
    • artifactId

      private final String artifactId
    • version

      private final String 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

      public String getGroupId()
    • getArtifactId

      public String getArtifactId()
    • getVersion

      public String getVersion()
    • getSource

      public String getSource()