public class SimpleMavenCache extends Object implements org.eclipse.aether.repository.WorkspaceReader, Serializable
| Constructor and Description |
|---|
SimpleMavenCache(File... dir) |
| Modifier and Type | Method and Description |
|---|---|
void |
cacheArtifact(org.eclipse.aether.artifact.Artifact artifact) |
void |
compact() |
File |
findArtifact(org.eclipse.aether.artifact.Artifact artifact) |
List<String> |
findVersions(org.eclipse.aether.artifact.Artifact artifact) |
org.eclipse.aether.repository.WorkspaceRepository |
getRepository() |
static void |
main(String[] args) |
public SimpleMavenCache(File... dir)
public File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
findArtifact in interface org.eclipse.aether.repository.WorkspaceReaderpublic List<String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
findVersions in interface org.eclipse.aether.repository.WorkspaceReaderpublic void cacheArtifact(org.eclipse.aether.artifact.Artifact artifact)
throws IOException,
org.apache.maven.settings.building.SettingsBuildingException,
org.eclipse.aether.collection.DependencyCollectionException,
org.eclipse.aether.resolution.DependencyResolutionException,
org.eclipse.aether.resolution.ArtifactResolutionException,
org.apache.maven.model.building.ModelBuildingException
IOExceptionorg.apache.maven.settings.building.SettingsBuildingExceptionorg.eclipse.aether.collection.DependencyCollectionExceptionorg.eclipse.aether.resolution.DependencyResolutionExceptionorg.eclipse.aether.resolution.ArtifactResolutionExceptionorg.apache.maven.model.building.ModelBuildingExceptionpublic void compact()
throws IOException
IOExceptionpublic org.eclipse.aether.repository.WorkspaceRepository getRepository()
getRepository in interface org.eclipse.aether.repository.WorkspaceReaderCopyright © 2024 GATE. All rights reserved.