@Component(role=ArtifactInstaller.class) public class DefaultArtifactInstaller extends Object implements ArtifactInstaller, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
| Constructor and Description |
|---|
DefaultArtifactInstaller() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextualize(org.codehaus.plexus.context.Context context)
Injects the Plexus content.
|
void |
install(ProjectBuildingRequest request,
Collection<Artifact> mavenArtifacts) |
void |
install(ProjectBuildingRequest request,
File localRepositry,
Collection<Artifact> mavenArtifacts) |
protected static boolean |
isMaven31() |
public void install(ProjectBuildingRequest request, Collection<Artifact> mavenArtifacts) throws ArtifactInstallerException
install in interface ArtifactInstallerrequest - ProjectBuildingRequestmavenArtifacts - ArtifactArtifactInstallerException - in case of an error.public void install(ProjectBuildingRequest request, File localRepositry, Collection<Artifact> mavenArtifacts) throws ArtifactInstallerException
install in interface ArtifactInstallerrequest - ProjectBuildingRequest.localRepositry - The location for the local repository.mavenArtifacts - Collection of MavenArtifactsArtifactInstallerException - In case of an error which can be the a given artifact can not be found or the
installation has failed.protected static boolean isMaven31()
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizablecontext - Plexus context to inject.org.codehaus.plexus.context.ContextException - if the PlexusContainer could not be located.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.