Interface ArtifactInstaller
-
- All Known Implementing Classes:
DefaultArtifactInstaller
public interface ArtifactInstaller
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
install(org.apache.maven.project.ProjectBuildingRequest request, java.io.File localRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
void
install(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts)
-
-
-
Method Detail
-
install
void install(org.apache.maven.project.ProjectBuildingRequest request, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException, java.lang.IllegalArgumentException
- Parameters:
request
-ProjectBuildingRequest
mavenArtifacts
-Artifact
(no null or empty collection allowed.)- Throws:
ArtifactInstallerException
- in case of an error.java.lang.IllegalArgumentException
- in caserequest
isnull
,mavenArtifacts
isnull
ormavenArtifacts
is empty (mavenArtifacts.isEmpty()
==true
).
-
install
void install(org.apache.maven.project.ProjectBuildingRequest request, java.io.File localRepository, java.util.Collection<org.apache.maven.artifact.Artifact> mavenArtifacts) throws ArtifactInstallerException
- Parameters:
request
-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.java.lang.IllegalArgumentException
- in case of parameterrequest
isnull
or parameterlocalRepository
isnull
orlocalRepository
is not a directory or parametermavenArtifacts
isnull
ormavenArtifacts.isEmpty()
istrue
.
-
-