public final class WagonUtils extends Object
Wagons.| Modifier and Type | Method and Description |
|---|---|
static org.apache.maven.wagon.Wagon |
createWagon(String serverId,
String url,
org.apache.maven.artifact.manager.WagonManager wagonManager,
org.apache.maven.settings.Settings settings,
org.apache.maven.plugin.logging.Log logger)
Convenience method to create a wagon.
|
static org.apache.maven.wagon.proxy.ProxyInfo |
getProxyInfo(org.apache.maven.settings.Settings settings)
Convenience method to convert the
Proxy object from a Settings into a ProxyInfo. |
public static org.apache.maven.wagon.proxy.ProxyInfo getProxyInfo(org.apache.maven.settings.Settings settings)
Proxy object from a Settings into a ProxyInfo.settings - The settings to use.null if the settings do not define a proxy.public static org.apache.maven.wagon.Wagon createWagon(String serverId, String url, org.apache.maven.artifact.manager.WagonManager wagonManager, org.apache.maven.settings.Settings settings, org.apache.maven.plugin.logging.Log logger) throws org.apache.maven.wagon.UnsupportedProtocolException, org.apache.maven.artifact.manager.WagonConfigurationException, org.apache.maven.wagon.ConnectionException, org.apache.maven.wagon.authentication.AuthenticationException
serverId - The serverId to use if the wagonManager needs help.url - The url to create a wagon for.wagonManager - The wgaon manager to use.settings - The settings to use.logger - The logger to use.org.apache.maven.wagon.UnsupportedProtocolException - if the protocol is not supported.org.apache.maven.artifact.manager.WagonConfigurationException - if the wagon cannot be configured.org.apache.maven.wagon.ConnectionException - If the connection cannot be established.org.apache.maven.wagon.authentication.AuthenticationException - If the connection cannot be authenticated.Copyright © 2008-2014. All Rights Reserved.