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
public class SiteDeployMojo
- extends org.apache.maven.plugin.AbstractMojo
Deploys the generated site using scp or file
protocol to the site URL specified in the
<distributionManagement> section of the POM.
For scp protocol, the website files are packaged into zip archive,
then the archive is transfered to the remote host, next it is un-archived.
This method of deployment should normally be much faster
than making a file by file copy. For file protocol, the files are copied
directly to the destination directory.
- Version:
- $Id: SiteDeployMojo.java 991099 2010-08-31 07:02:56Z olamy $
- Author:
- Michal Maczka
|
Field Summary |
protected org.apache.maven.execution.MavenSession |
mavenSession
|
| Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
|
Method Summary |
void |
execute()
|
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxy(java.lang.String protocol,
java.lang.String url,
org.apache.maven.plugin.logging.Log log,
org.apache.maven.execution.MavenSession mavenSession,
org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
|
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(org.apache.maven.wagon.repository.Repository repository,
org.apache.maven.artifact.manager.WagonManager wagonManager,
org.apache.maven.plugin.logging.Log log)
Get the ProxyInfo of the proxy associated with the host
and the protocol of the given repository. |
| 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 |
mavenSession
protected org.apache.maven.execution.MavenSession mavenSession
- Since:
- 3.0-beta-2
SiteDeployMojo
public SiteDeployMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
-
- Throws:
org.apache.maven.plugin.MojoExecutionException
getProxyInfo
public static org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(org.apache.maven.wagon.repository.Repository repository,
org.apache.maven.artifact.manager.WagonManager wagonManager,
org.apache.maven.plugin.logging.Log log)
Get the ProxyInfo of the proxy associated with the host
and the protocol of the given repository.
Extract from
J2SE Doc : Networking Properties - nonProxyHosts : "The value can be a list of hosts,
each separated by a |, and in addition a wildcard character (*) can be used for matching"
Defensively support for comma (",") and semi colon (";") in addition to pipe ("|") as separator.
- Parameters:
repository - the Repository to extract the ProxyInfo from.wagonManager - the WagonManager used to connect to the Repository.
- Returns:
- a ProxyInfo object instantiated or
null if no matching proxy is found
getProxy
public static org.apache.maven.wagon.proxy.ProxyInfo getProxy(java.lang.String protocol,
java.lang.String url,
org.apache.maven.plugin.logging.Log log,
org.apache.maven.execution.MavenSession mavenSession,
org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.