org.apache.maven.plugins.site
Class SiteDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.plugins.site.SiteDeployMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
public class SiteDeployMojo
- extends org.apache.maven.plugin.AbstractMojo
- implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
Deploys website using scp/file protocol.
For scp protocol, website files are packaged into zip archive,
then archive is transfred to remote host, nextly it is un-archived.
This method of deployment should normally be much faster
then making file by file copy. For file protocol, the files are copied
directly to the destination directory.
- Version:
- $Id: SiteDeployMojo.java 487567 2006-12-15 14:29:35Z jvanzyl $
- Author:
- Michal Maczka
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Method Summary |
void |
contextualize(org.codehaus.plexus.context.Context context)
|
void |
execute()
|
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(org.apache.maven.settings.Settings settings)
Convenience method to map a Proxy object from the user system settings to a
ProxyInfo object. |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SiteDeployMojo
public SiteDeployMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
- Specified by:
execute
in interface org.apache.maven.plugin.Mojo
- Throws:
org.apache.maven.plugin.MojoExecutionException
getProxyInfo
public static org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(org.apache.maven.settings.Settings settings)
- Convenience method to map a
Proxy
object from the user system settings to a
ProxyInfo
object.
- Returns:
- a proxyInfo object instancied or null if no active proxy is define in the settings.xml
contextualize
public void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
- Specified by:
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
- Throws:
org.codehaus.plexus.context.ContextException
Copyright © 2002-2011 Apache Software Foundation. All Rights Reserved.