Enum Class MavenScope

java.lang.Object
java.lang.Enum<MavenScope>
aQute.maven.api.MavenScope
All Implemented Interfaces:
Serializable, Comparable<MavenScope>, Constable

public enum MavenScope extends Enum<MavenScope>
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    compile - 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 Type
    Method
    Description
    static MavenScope
     
    boolean
     
    static MavenScope
    Returns the enum constant of this class with the specified name.
    static MavenScope[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • compile

      public static final MavenScope 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

      public static final MavenScope 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

      public static final MavenScope 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

      public static final MavenScope 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

      public static final MavenScope 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_

      public static final MavenScope import_
  • Method Details

    • values

      public static MavenScope[] 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 MavenScope 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
    • isTransitive

      public boolean isTransitive()
    • getScope

      public static MavenScope getScope(String scope)