org.apache.maven.artifact.deployer
Interface ArtifactDeployer

All Known Implementing Classes:
DefaultArtifactDeployer

public interface ArtifactDeployer

The Bean which is used in Jelly Scripts and serves as a proxy to Artifact Deployer API Note that all paths in repository are computed and source file name is igonred. Other remark: To deploy an artifact means much more then to copy single file. In every case also MD5 file created and copied to remote repository. In case of snapshots the process in even more complex.

Version:
$Id: ArtifactDeployer.java 532339 2007-04-25 12:28:56Z ltheussl $
Author:
Michal Maczka

Method Summary
 void deploy(String artifact, String type, org.apache.maven.project.Project project, org.apache.maven.repository.ArtifactTypeHandler handler)
          Deploy given artifact to remote repository.
 void deploySnapshot(String artifact, String type, org.apache.maven.project.Project project, org.apache.maven.repository.ArtifactTypeHandler handler)
          Deploy given artifact as a snapshot to remote repository.
 void install(String artifact, String type, org.apache.maven.project.Project project, org.apache.maven.repository.ArtifactTypeHandler handler)
          Install given artifact in local repository.
 void installSnapshot(String artifact, String type, org.apache.maven.project.Project project, org.apache.maven.repository.ArtifactTypeHandler handler)
          Install given artifact as snapshot in local repository.
 

Method Detail

deploy

public void deploy(String artifact,
                   String type,
                   org.apache.maven.project.Project project,
                   org.apache.maven.repository.ArtifactTypeHandler handler)
            throws org.apache.maven.MavenException
Deploy given artifact to remote repository.

Parameters:
artifact - Artifact filename
type - The type of the artifact (like war, jar)
project - The project which is a producer of the artifact
handler - the type handler for the artifact
Throws:
org.apache.maven.MavenException

deploySnapshot

public void deploySnapshot(String artifact,
                           String type,
                           org.apache.maven.project.Project project,
                           org.apache.maven.repository.ArtifactTypeHandler handler)
                    throws org.apache.maven.MavenException
Deploy given artifact as a snapshot to remote repository.

Parameters:
artifact -
type - The type of the artifact (like war, jar)
project - The project which is a producer of the artifact
handler - the type handler for the artifact
Throws:
org.apache.maven.MavenException

install

public void install(String artifact,
                    String type,
                    org.apache.maven.project.Project project,
                    org.apache.maven.repository.ArtifactTypeHandler handler)
             throws org.apache.maven.MavenException
Install given artifact in local repository.

Parameters:
artifact - file name of the artifact
type - The type of the artifact (like war, jar)
project - The project which is a producer of the artifact
handler - the type handler for the artifact
Throws:
org.apache.maven.MavenException

installSnapshot

public void installSnapshot(String artifact,
                            String type,
                            org.apache.maven.project.Project project,
                            org.apache.maven.repository.ArtifactTypeHandler handler)
                     throws org.apache.maven.MavenException
Install given artifact as snapshot in local repository.

Parameters:
artifact -
type - The type of the artifact (like war, jar)
project - The project which is a producer of the artifact
handler - the type handler for the artifact
Throws:
org.apache.maven.MavenException


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