Package org.apache.maven.api
Enum Class DependencyScope
- All Implemented Interfaces:
- Serializable,- Comparable<DependencyScope>,- Constable
Dependency scope.
 This represents at which time the dependency will be used, for example, at compile time only,
 at run time or at test time.  For a given dependency, the scope is directly derived from the
 
Dependency.getScope() and will be used when using PathScope
 and the DependencyResolver.- Since:
- 4.0.0
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionCompile, runtime and test.Compile only.None.Provided.Runtime and test.System scope.Test compile and test runtime.Test compile only.Test runtime.Undefined.
- 
Method SummaryModifier and TypeMethodDescriptionstatic DependencyScopeid()Theiduniquely represents a value for this extensible enum.booleanbooleanstatic DependencyScopeReturns the enum constant of this class with the specified name.static DependencyScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
NONENone. Allows you to declare dependencies (for example to alter reactor build order) but in reality dependencies in this scope are not part of any path scope.
- 
UNDEFINEDUndefined. When no scope is explicitly given, UNDEFINED will be used, but its meaning will depend on whether the DependencyCoordinate is used in dependency management, in which case it means the scope is not explicitly managed by this managed dependency, or as a real dependency, in which case, the scope will default toCOMPILE.
- 
COMPILE_ONLYCompile only.
- 
COMPILECompile, runtime and test.
- 
RUNTIMERuntime and test.
- 
PROVIDEDProvided.
- 
TEST_ONLYTest compile only.
- 
TESTTest compile and test runtime.
- 
TEST_RUNTIMETest runtime.
- 
SYSTEMSystem scope.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
forId
- 
idTheiduniquely represents a value for this extensible enum. This id should be used to compute the equality and hash code for the instance.- Returns:
- the id
 
- 
isTransitivepublic boolean isTransitive()
- 
is
 
-