@Experimental public interface ArtifactInstaller extends Service
Artifacts to the local repository.Session.withLocalRepository(org.apache.maven.api.LocalRepository)| Modifier and Type | Method and Description |
|---|---|
void |
install(ArtifactInstallerRequest request) |
default void |
install(Session session,
Artifact artifact) |
default void |
install(Session session,
Collection<Artifact> artifacts) |
void install(ArtifactInstallerRequest request)
request - ArtifactInstallerRequestArtifactInstallerException - in case of an error.IllegalArgumentException - in case request is null.default void install(Session session, Artifact artifact)
session - the repository sessionartifact - the Artifact to installArtifactInstallerException - 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 session is null or
artifact is null.default void install(Session session, Collection<Artifact> artifacts)
session - the repository sessionartifacts - Collection of MavenArtifactsArtifactInstallerException - 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 request is null or parameter
localRepository is null or localRepository is not a directory
or parameter mavenArtifacts is null or
mavenArtifacts.isEmpty() is true.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.