Class Maven31ArtifactInstaller
- java.lang.Object
-
- org.apache.maven.shared.transfer.artifact.install.internal.Maven31ArtifactInstaller
-
- All Implemented Interfaces:
ArtifactInstaller
@Component(role=ArtifactInstaller.class, hint="maven31") class Maven31ArtifactInstaller extends java.lang.Object implements ArtifactInstaller
-
-
Field Summary
Fields Modifier and Type Field Description private RepositoryManager
repositoryManager
private org.eclipse.aether.RepositorySystem
repositorySystem
-
Constructor Summary
Constructors Constructor Description Maven31ArtifactInstaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File localRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
void
install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
-
-
-
Field Detail
-
repositorySystem
@Requirement private org.eclipse.aether.RepositorySystem repositorySystem
-
repositoryManager
@Requirement private RepositoryManager repositoryManager
-
-
Method Detail
-
install
public void install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
- Specified by:
install
in interfaceArtifactInstaller
- Parameters:
buildingRequest
-ProjectBuildingRequest
mavenArtifacts
-Artifact
(no null or empty collection allowed.)- Throws:
ArtifactInstallerException
- in case of an error.
-
install
public void install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File localRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
- Specified by:
install
in interfaceArtifactInstaller
- Parameters:
buildingRequest
-ProjectBuildingRequest
.localRepository
- The location for the local repository.mavenArtifacts
- Collection ofMavenArtifacts
- Throws:
ArtifactInstallerException
- In case of an error which can be the a given artifact can not be found or the installation has failed.
-
-