Class DependencyResolver
- java.lang.Object
-
- org.apache.jackrabbit.vault.validation.context.AbstractDependencyResolver
-
- org.apache.jackrabbit.filevault.maven.packaging.impl.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 aDependency
from the underlying Maven repository (first local, then remote).
-
-
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 viaresolvePackageInfo(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)
-
-
-
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 classorg.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 viaresolvePackageInfo(MavenCoordinates)
.- Overrides:
resolvePackageInfo
in classorg.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
-
-