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.WorkspaceReader
public List<String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
findVersions
in interface org.eclipse.aether.repository.WorkspaceReader
public 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
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
public void compact() throws IOException
IOException
public org.eclipse.aether.repository.WorkspaceRepository getRepository()
getRepository
in interface org.eclipse.aether.repository.WorkspaceReader
Copyright © 2024 GATE. All rights reserved.