Package org.apache.maven.api.services
Interface ArtifactInstaller
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultArtifactInstaller
Installs
ProducedArtifact
s to the local repository.- Since:
- 4.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
install
(ArtifactInstallerRequest request) default void
install
(Session session, Collection<ProducedArtifact> artifacts) default void
install
(Session session, ProducedArtifact artifact)
-
Method Details
-
install
- Parameters:
request
-ArtifactInstallerRequest
- Throws:
ArtifactInstallerException
- in case of an errorIllegalArgumentException
- in caserequest
isnull
-
install
- Parameters:
session
- the repository sessionartifact
- theProducedArtifact
to 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 parametersession
isnull
orartifact
isnull
.
-
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 parameterrequest
isnull
or parameterlocalRepository
isnull
orlocalRepository
is not a directory or parametermavenArtifacts
isnull
ormavenArtifacts.isEmpty()
istrue
.
-