org.apache.maven.artifact.installer

Interface ArtifactInstaller

public interface ArtifactInstaller

Version: $Id: ArtifactInstaller.java 293493 2005-10-04 02:26:25Z brett $

Author: Michal Maczka

Field Summary
StringROLE
Method Summary
voidinstall(String basedir, String finalName, Artifact artifact, ArtifactRepository localRepository)
Install an artifact from a particular directory.
voidinstall(File source, Artifact artifact, ArtifactRepository localRepository)
Install an artifact from a particular file.

Field Detail

ROLE

public String ROLE

Method Detail

install

public void install(String basedir, String finalName, Artifact artifact, ArtifactRepository localRepository)

Deprecated: to be removed before 2.0 after the instlal/deploy plugins use the alternate method

Install an artifact from a particular directory. The artifact handler is used to determine the filename of the source file.

Parameters: basedir the directory where the artifact is stored finalName the name of the artifact sans extension artifact the artifact definition localRepository the local repository to install into

Throws: ArtifactInstallationException if an error occurred installing the artifact

install

public void install(File source, Artifact artifact, ArtifactRepository localRepository)
Install an artifact from a particular file.

Parameters: source the file to install artifact the artifact definition localRepository the local repository to install into

Throws: ArtifactInstallationException if an error occurred installing the artifact

Copyright © 2001-2009 Apache Software Foundation. All Rights Reserved.