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.eclipse.aether.RepositorySystemSession repositorySession, org.eclipse.aether.RepositorySystem repositorySystem, List<org.eclipse.aether.repository.RemoteRepository> repositories, Map<org.apache.jackrabbit.vault.packaging.Dependency,​org.eclipse.aether.artifact.Artifact> mapPackageDependencyToMavenArtifact, Collection<org.apache.jackrabbit.vault.packaging.PackageInfo> knownPackageInfos, org.apache.maven.plugin.logging.Log log)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected @Nullable org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(@NotNull org.apache.jackrabbit.vault.packaging.Dependency dependency)
      Use some heuristics to map the package dependency to Maven coordinates and try to resolve them then via resolvePackageInfo(MavenCoordinates).
      org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(@NotNull org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver.MavenCoordinates mavenCoordinates)  
      protected @Nullable org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(org.eclipse.aether.artifact.Artifact artifact)  
      • Methods inherited from class org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver

        resolvePackageInfo
    • Constructor Detail

      • DependencyResolver

        public DependencyResolver​(org.eclipse.aether.RepositorySystemSession repositorySession,
                                  org.eclipse.aether.RepositorySystem repositorySystem,
                                  List<org.eclipse.aether.repository.RemoteRepository> repositories,
                                  Map<org.apache.jackrabbit.vault.packaging.Dependency,​org.eclipse.aether.artifact.Artifact> mapPackageDependencyToMavenArtifact,
                                  Collection<org.apache.jackrabbit.vault.packaging.PackageInfo> knownPackageInfos,
                                  org.apache.maven.plugin.logging.Log log)
    • Method Detail

      • resolvePackageInfo

        public org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(@NotNull
                                                                                    @NotNull 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
      • resolvePackageInfo

        @Nullable
        protected @Nullable org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(@NotNull
                                                                                                 @NotNull org.apache.jackrabbit.vault.packaging.Dependency dependency)
                                                                                          throws IOException
        Use some heuristics to map the package dependency to Maven coordinates and try to resolve them then via resolvePackageInfo(MavenCoordinates).
        Overrides:
        resolvePackageInfo in class org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver
        Parameters:
        dependency -
        Returns:
        the resolved package info or null
        Throws:
        IOException
      • resolvePackageInfo

        @Nullable
        protected @Nullable org.apache.jackrabbit.vault.packaging.PackageInfo resolvePackageInfo​(org.eclipse.aether.artifact.Artifact artifact)
                                                                                          throws IOException
        Throws:
        IOException