Package com.zfabrik.impl.mvncr
Class ArtifactResolverImpl
java.lang.Object
com.zfabrik.impl.mvncr.ArtifactResolverImpl
- All Implemented Interfaces:
ArtifactResolver
Implementation of
ArtifactResolver
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zfabrik.impl.mvncr.ArtifactResolver
ArtifactResolver.Scope
-
Field Summary
Fields inherited from interface com.zfabrik.impl.mvncr.ArtifactResolver
DEFAULT_SETTINGS_FILE
-
Constructor Summary
ConstructorDescriptionArtifactResolverImpl(File work, File settingsFile, Collection<ArtifactName> managed)
-
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.
-
Constructor Details
-
ArtifactResolverImpl
public ArtifactResolverImpl(File work, File settingsFile, Collection<ArtifactName> managed) throws Exception- Throws:
Exception
-
-
Method Details
-
clear
public void clear()Description copied from interface:ArtifactResolver
Drop the local repository cache- Specified by:
clear
in interfaceArtifactResolver
-
resolveDependencies
public Collection<ArtifactName> resolveDependencies(ArtifactName name, ArtifactResolver.Scope scope, Collection<ArtifactName> exclusions) throws ExceptionDescription copied from interface:ArtifactResolver
Resolve dependencies of an artifact taking into account scope and exclusions.- Specified by:
resolveDependencies
in interfaceArtifactResolver
- 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
Description copied from interface:ArtifactResolver
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.- Specified by:
download
in interfaceArtifactResolver
- Parameters:
name
- Artifact to retrieveout
- Output folder.- Returns:
- a collection of all files as provided to the output folder
- Throws:
Exception
-