Class DependencyResolver

  • All Implemented Interfaces:
    org.apache.jackrabbit.vault.validation.context.DependencyResolver

    public class DependencyResolver
    extends org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver
    Allows to resolve a Dependency from the underlying Maven repository (first local, then remote).
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver

        org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver.MavenCoordinates
    • Field Summary

      • Fields inherited from class org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver

        MAVEN_REPOSITORY_SCHEME
    • Constructor Summary

      Constructors 
      Constructor Description
      DependencyResolver​(org.apache.maven.artifact.repository.RepositoryRequest repositoryRequest, org.apache.maven.repository.RepositorySystem repositorySystem, org.apache.maven.artifact.resolver.ResolutionErrorHandler resolutionErrorHandler, Map<org.apache.jackrabbit.vault.packaging.Dependency,​org.apache.maven.artifact.Artifact> mapPackageDependencyToMavenArtifact, Collection<org.apache.jackrabbit.vault.packaging.PackageInfo> knownPackageInfos, org.apache.maven.plugin.logging.Log log)  
    • Constructor Detail

      • DependencyResolver

        public DependencyResolver​(org.apache.maven.artifact.repository.RepositoryRequest repositoryRequest,
                                  org.apache.maven.repository.RepositorySystem repositorySystem,
                                  org.apache.maven.artifact.resolver.ResolutionErrorHandler resolutionErrorHandler,
                                  Map<org.apache.jackrabbit.vault.packaging.Dependency,​org.apache.maven.artifact.Artifact> mapPackageDependencyToMavenArtifact,
                                  Collection<org.apache.jackrabbit.vault.packaging.PackageInfo> knownPackageInfos,
                                  org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • resolvePackageInfo

        @Nullable
        public @Nullable org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver.MavenCoordinates mavenCoordinates)
                                                                                       throws IOException
        Specified by:
        resolvePackageInfo in class org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver
        Throws:
        IOException