Enum Class Config.Source
- All Implemented Interfaces:
Serializable
,Comparable<Config.Source>
,Constable
- Enclosing class:
Config
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProject model properties.Maven system properties.Maven user properties. -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Source
Returns the enum constant of this class with the specified name.static Config.Source[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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
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 nameNullPointerException
- if the argument is null
-