Enum Class EdgeKind

java.lang.Object
java.lang.Enum<EdgeKind>
network.ike.workspace.cascade.EdgeKind
All Implemented Interfaces:
Serializable, Comparable<EdgeKind>, Constable

public enum EdgeKind extends Enum<EdgeKind>
The Maven model site that produced a CascadeEdge.

The release cascade derives edges from every version-bearing site in an IKE POM, not just <dependencies>. The kind records which site an edge came from, so the cascade can do site-appropriate things on alignment — for example, rewriting a parent's <version> differently from a dependency's, or skipping a build-only plugin edge that the consumer POM doesn't carry to its release.

Kinds:

  • PARENT — the project's <parent> block.
  • DEPENDENCY — a <dependency> (compile, runtime, or test scope) or a <dependencyManagement> entry without <scope>import</scope>.
  • BOM — a <dependencyManagement> entry whose scope is import (an imported BOM).
  • PLUGIN — a <build><plugins> or <build><pluginManagement><plugins> entry. Includes plugins carrying <extensions>true</extensions>.
  • EXTENSION — a .mvn/extensions.xml entry. Maven 4 build extensions resolve before the POM model loads and so cannot ride a plugin edge; this kind names them explicitly.

See IKE-Network/ike-issues#496 for the derivation specification and the dev-release-graph-derivation topic in ike-lab-documents.

  • Enum Constant Details

    • PARENT

      public static final EdgeKind PARENT
      A <parent> edge.
    • DEPENDENCY

      public static final EdgeKind DEPENDENCY
      A <dependency> or non-import <dependencyManagement> edge.
    • BOM

      public static final EdgeKind BOM
      A <dependencyManagement> entry with <scope>import</scope>.
    • PLUGIN

      public static final EdgeKind PLUGIN
      A <plugin> or <pluginManagement> edge, including extensions-carrying plugins.
    • EXTENSION

      public static final EdgeKind EXTENSION
      A .mvn/extensions.xml edge.
  • Method Details

    • values

      public static EdgeKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EdgeKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null