Package com.zfabrik.impl.mvncr
Interface ArtifactResolver
- All Known Implementing Classes:
ArtifactResolverImpl
public interface ArtifactResolver
Artifact resolution interface. Used by the maven component repository implementations.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Resolution scope closely related to Maven dependency scopes -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Drop the local repository cachedownload(ArtifactName name, File out)
Download or provide from cache all artifact file resources in the specified output folder.resolveDependencies(ArtifactName name, ArtifactResolver.Scope scope, Collection<ArtifactName> exclusions)
Resolve dependencies of an artifact taking into account scope and exclusions.
-
Field Details
-
DEFAULT_SETTINGS_FILE
- See Also:
- Constant Field Values
-
-
Method Details
-
clear
void clear()Drop the local repository cache -
resolveDependencies
Collection<ArtifactName> resolveDependencies(ArtifactName name, ArtifactResolver.Scope scope, Collection<ArtifactName> exclusions) throws ExceptionResolve dependencies of an artifact taking into account scope and exclusions.- Parameters:
name
- Artifact to resolve for. This will also be listed with the resultscope
- Scope to resolve for (implies recursiveness)exclusions
- Exclusions to be omitted from the dependency graph- Returns:
- A collection of artifact names making up the dependencies of the artifact to resolve for.
- Throws:
Exception
-
download
Download or provide from cache all artifact file resources in the specified output folder. The result may encompass more than a single artifact. If running in development mode for example, source attachments will be provided as well.- Parameters:
name
- Artifact to retrieveout
- Output folder.- Returns:
- a collection of all files as provided to the output folder
- Throws:
Exception
-