@Component(role=ArtifactInstaller.class, hint="maven31") class Maven31ArtifactInstaller extends java.lang.Object implements ArtifactInstaller
Modifier and Type | Field and Description |
---|---|
private RepositoryManager |
repositoryManager |
private org.eclipse.aether.RepositorySystem |
repositorySystem |
Constructor and Description |
---|
Maven31ArtifactInstaller() |
Modifier and Type | Method and Description |
---|---|
void |
install(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) |
void |
install(org.apache.maven.project.ProjectBuildingRequest buildingRequest,
java.io.File localRepository,
java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) |
@Requirement private org.eclipse.aether.RepositorySystem repositorySystem
@Requirement private RepositoryManager repositoryManager
public void install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
install
in interface ArtifactInstaller
buildingRequest
- ProjectBuildingRequest
mavenArtifacts
- Artifact
(no null or empty collection allowed.)ArtifactInstallerException
- in case of an error.public void install(org.apache.maven.project.ProjectBuildingRequest buildingRequest, java.io.File localRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
install
in interface ArtifactInstaller
buildingRequest
- ProjectBuildingRequest
.localRepository
- The location for the local repository.mavenArtifacts
- Collection of MavenArtifacts
ArtifactInstallerException
- In case of an error which can be the a given artifact can not be found or the
installation has failed.