Package aQute.maven.api
Enum Class MavenScope
- All Implemented Interfaces:
Serializable,Comparable<MavenScope>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptioncompile - this is the default scope, used if none is specified.provided - this is much like compile, but indicates you expect the JDK or a container to provide it at runtime.runtime - this scope indicates that the dependency is not required for compilation, but is for execution.this scope is similar to provided except that you have to provide the JAR which contains it explicitly.test - this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases. -
Method Summary
Modifier and TypeMethodDescriptionstatic MavenScopebooleanstatic MavenScopeReturns the enum constant of this class with the specified name.static MavenScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
compile
compile - this is the default scope, used if none is specified. Compile dependencies are available in all classpaths. Furthermore, those dependencies are propagated to dependent projects. -
provided
provided - this is much like compile, but indicates you expect the JDK or a container to provide it at runtime. It is only available on the compilation and test classpath, and is not transitive. -
runtime
runtime - this scope indicates that the dependency is not required for compilation, but is for execution. It is in the runtime and test classpaths, but not the compile classpath. -
test
test - this scope indicates that the dependency is not required for normal use of the application, and is only available for the test compilation and execution phases. -
system
this scope is similar to provided except that you have to provide the JAR which contains it explicitly. The artifact is always available and is not looked up in a repository. -
import_
-
-
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
-
isTransitive
public boolean isTransitive() -
getScope
-