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
- See Also:
- 
Method SummaryModifier 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 error
- IllegalArgumentException- in case- requestis- null
 
- 
install- Parameters:
- session- the repository session
- artifact- the- Artifactto 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 parameter- sessionis- nullor- artifactis- null.
 
- 
install- Parameters:
- session- the repository session
- artifacts- Collection of- MavenArtifacts
- 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 parameter- requestis- nullor parameter- localRepositoryis- nullor- localRepositoryis not a directory or parameter- mavenArtifactsis- nullor- mavenArtifacts.isEmpty()is- true.
 
 
-