Enum Class Config.Source

java.lang.Object
java.lang.Enum<Config.Source>
org.apache.maven.api.annotations.Config.Source
All Implemented Interfaces:
Serializable, Comparable<Config.Source>, Constable
Enclosing class:
Config

public static enum Config.Source extends Enum<Config.Source>
Property source, which determines when and where the property will be read from or set for consumption. The source indicates the timing of property evaluation in the Maven build lifecycle and the location where the property value is defined.
Since:
4.0.0
  • Enum Constant Details

    • SYSTEM_PROPERTIES

      public static final Config.Source SYSTEM_PROPERTIES
      Maven system properties. These properties are evaluated very early during the boot process, typically set by Maven itself and flagged as readOnly=true. System properties are initialized before the build starts and are available throughout the entire Maven execution. They are used for core Maven functionality that needs to be established at startup.
    • USER_PROPERTIES

      public static final Config.Source USER_PROPERTIES
      Maven user properties. These are properties that users configure through various means such as maven.properties files, maven.config files, command line parameters (-D flags), settings.xml, or environment variables. They are evaluated during the build process and represent the primary way for users to customize Maven's behavior at runtime.
    • MODEL

      public static final Config.Source MODEL
      Project model properties. These properties are defined in the project's POM file (pom.xml) and are read from the project model during the build. They represent build-time configuration that is specific to the project and is stored with the project definition itself rather than in external configuration.
  • Method Details

    • values

      public static Config.Source[] 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 Config.Source 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