Interface SystemDependencyScope

  • All Superinterfaces:
    DependencyScope

    public interface SystemDependencyScope
    extends DependencyScope
    A special dependency scope: "system".

    This is a special scope. In this scope case, Resolver should handle dependencies specially, as they have no POM (so are always a leaf on graph), are not in any repository, but are actually hosted on host OS file system. On resolution resolver merely checks is file present or not.

    Since:
    2.0.0
    • Method Detail

      • getSystemPath

        java.lang.String getSystemPath​(Artifact artifact)
        Returns system path string of provided artifact, or null.
        Parameters:
        artifact - The artifact that we want system path from, must not be null.
        Returns:
        the system path from passed in properties, or null if not present.
      • setSystemPath

        void setSystemPath​(java.util.Map<java.lang.String,​java.lang.String> properties,
                           java.lang.String systemPath)
        Sets system path in properties. The passed in systemPath can be null, in which case expected operation is "remove" (or "unset").
        Parameters:
        properties - the properties map, must not be null.
        systemPath - the system path to set (if not null) or unset (if null).