Package org.apache.maven.api.services
Interface ArtifactInstaller
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultArtifactInstaller
Installs
Artifact
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<Artifact> artifacts) default void
-
Method Details
-
install
- Parameters:
request
-ArtifactInstallerRequest
- Throws:
ArtifactInstallerException
- in case of an errorIllegalArgumentException
- in caserequest
isnull
-
install
- Parameters:
session
- the repository sessionartifact
- theArtifact
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
.
-