Package org.apache.maven.api.services
Interface ArtifactInstaller
- All Superinterfaces:
 Service
- All Known Implementing Classes:
 DefaultArtifactInstaller
Installs 
Artifacts to the local repository.- Since:
 - 4.0.0
 - See Also:
 
- 
Method Summary
Modifier and TypeMethodDescriptionvoidinstall(ArtifactInstallerRequest request) default voidinstall(Session session, Collection<Artifact> artifacts) default void 
- 
Method Details
- 
install
- Parameters:
 request-ArtifactInstallerRequest- Throws:
 ArtifactInstallerException- in case of an errorIllegalArgumentException- in caserequestisnull
 - 
install
- Parameters:
 session- the repository sessionartifact- theArtifactto install- Throws:
 ArtifactInstallerException- In case of an error which can be the a given artifact cannot be found or the installation has failed.IllegalArgumentException- in case of parametersessionisnullorartifactisnull.
 - 
install
- Parameters:
 session- the repository sessionartifacts- Collection ofMavenArtifacts- Throws:
 ArtifactInstallerException- In case of an error which can be the a given artifact cannot be found or the installation has failed.IllegalArgumentException- in case of parameterrequestisnullor parameterlocalRepositoryisnullorlocalRepositoryis not a directory or parametermavenArtifactsisnullormavenArtifacts.isEmpty()istrue.
 
 -