Enum ClasspathType

    • Enum Constant Detail

      • PROJECT_ONLY

        public static final ClasspathType PROJECT_ONLY
        Only classes in the project.
      • WITH_RUNTIME_DEPENDENCIES

        public static final ClasspathType WITH_RUNTIME_DEPENDENCIES
        Classes from the project and any runtime dependencies.
      • WITH_COMPILE_DEPENDENCIES

        public static final ClasspathType WITH_COMPILE_DEPENDENCIES
        Classes from the project and any compile time dependencies.
      • WITH_ALL_DEPENDENCIES

        public static final ClasspathType WITH_ALL_DEPENDENCIES
        Classes from the project, compile time and runtime dependencies.
      • WITH_ALL_DEPENDENCIES_AND_TESTS

        public static final ClasspathType WITH_ALL_DEPENDENCIES_AND_TESTS
        Classes from the project (including tests), compile time, runtime and test dependencies. Mainly intended for internal use when looking up custom modules.
    • Method Detail

      • values

        public static ClasspathType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClasspathType c : ClasspathType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClasspathType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null
      • getClasspathElements

        public Collection<String> getClasspathElements​(org.apache.maven.project.MavenProject project)
      • getUrls

        public List<URL> getUrls​(org.apache.maven.project.MavenProject project)