org.fusesource.mvnplugins.updatesite
public class UpdateSiteDeployMojo extends org.apache.maven.plugin.AbstractMojo implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
scp
or file
protocol to the site URL specified in the
remoteServerId
and remoteServerUrl
values in the
<configuration>
of this plugin.
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.
Constructor and Description |
---|
UpdateSiteDeployMojo() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(org.codehaus.plexus.context.Context context) |
void |
execute() |
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(org.apache.maven.wagon.repository.Repository repository,
org.apache.maven.artifact.manager.WagonManager wagonManager)
Get the
ProxyInfo of the proxy associated with the host
and the protocol of the given repository . |
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
org.apache.maven.plugin.MojoExecutionException
public static org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(org.apache.maven.wagon.repository.Repository repository, org.apache.maven.artifact.manager.WagonManager wagonManager)
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.
repository
- the Repository to extract the ProxyInfo from.wagonManager
- the WagonManager used to connect to the Repository.null
if no matching proxy is foundpublic void contextualize(org.codehaus.plexus.context.Context context) throws org.codehaus.plexus.context.ContextException
contextualize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
org.codehaus.plexus.context.ContextException
Copyright © 2009-2013 FuseSource. All Rights Reserved.