Class DefaultArtifactDeployer

  • All Implemented Interfaces:
    ArtifactDeployer, org.codehaus.plexus.logging.LogEnabled

    @Component(role=ArtifactDeployer.class,
               instantiationStrategy="per-lookup")
    public class DefaultArtifactDeployer
    extends org.codehaus.plexus.logging.AbstractLogEnabled
    implements ArtifactDeployer
    DefaultArtifactDeployer
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      void deploy​(java.io.File source, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
      Deploy an artifact from a particular file.
      void deploy​(java.lang.String basedir, java.lang.String finalName, org.apache.maven.artifact.Artifact artifact, org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository, org.apache.maven.artifact.repository.ArtifactRepository localRepository)
      Deprecated.
      we want to use the artifact method only, and ensure artifact.file is set correctly.
      • Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled

        enableLogging, getLogger, setupLogger, setupLogger, setupLogger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultArtifactDeployer

        public DefaultArtifactDeployer()
    • Method Detail

      • deploy

        @Deprecated
        public void deploy​(java.lang.String basedir,
                           java.lang.String finalName,
                           org.apache.maven.artifact.Artifact artifact,
                           org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
                           org.apache.maven.artifact.repository.ArtifactRepository localRepository)
                    throws ArtifactDeploymentException
        Deprecated.
        we want to use the artifact method only, and ensure artifact.file is set correctly.
        Description copied from interface: ArtifactDeployer
        Deploy an artifact from a particular directory. The artifact handler is used to determine the filename of the source file.
        Specified by:
        deploy in interface ArtifactDeployer
        Parameters:
        basedir - the directory where the artifact is stored
        finalName - the name of the artifact without extension
        artifact - the artifact definition
        deploymentRepository - the repository to deploy to
        localRepository - the local repository to install into
        Throws:
        ArtifactDeploymentException - if an error occurred deploying the artifact
      • deploy

        public void deploy​(java.io.File source,
                           org.apache.maven.artifact.Artifact artifact,
                           org.apache.maven.artifact.repository.ArtifactRepository deploymentRepository,
                           org.apache.maven.artifact.repository.ArtifactRepository localRepository)
                    throws ArtifactDeploymentException
        Description copied from interface: ArtifactDeployer
        Deploy an artifact from a particular file.
        Specified by:
        deploy in interface ArtifactDeployer
        Parameters:
        source - the file to deploy
        artifact - the artifact definition
        deploymentRepository - the repository to deploy to
        localRepository - the local repository to install into
        Throws:
        ArtifactDeploymentException - if an error occurred deploying the artifact