public interface MavenConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
enableProxy(URL url) |
Boolean |
getCertificateCheck()
Returns true if the certificate should be checked on SSL connection, false otherwise.
|
List<MavenRepositoryURL> |
getDefaultRepositories()
Returns a list of default repositories to be searched before any other repositories.
|
String |
getGlobalChecksumPolicy()
Global repository update policy.
|
String |
getGlobalUpdatePolicy()
Global repository update policy.
|
MavenRepositoryURL |
getLocalRepository()
Returns the url of local repository.
|
Map<String,Map<String,String>> |
getMirrors()
Returns the mirror settings from settings.xml.
|
org.ops4j.util.property.PropertyResolver |
getPropertyResolver() |
Map<String,Map<String,String>> |
getProxySettings(String... protocols)
Returns the active proxy settings from settings.xml
The fields are user, pass, host, port, nonProxyHosts, protocol.
|
List<MavenRepositoryURL> |
getRepositories()
Returns a list of repositories to be searched.
|
String |
getSecuritySettings() |
org.apache.maven.settings.Settings |
getSettings() |
URL |
getSettingsFileUrl()
Returns the URL of maven settings file.
|
Integer |
getTimeout()
Returns the timeout configured in case the maven artifact is retrieved from a
remote location.
|
boolean |
isOffline() |
Boolean |
useFallbackRepositories()
Returns true if the fallback repositories should be used instead of default ones.
|
boolean isOffline()
Boolean getCertificateCheck()
URL getSettingsFileUrl()
List<MavenRepositoryURL> getDefaultRepositories() throws MalformedURLException
MalformedURLExceptionList<MavenRepositoryURL> getRepositories() throws MalformedURLException
MalformedURLExceptionString getGlobalUpdatePolicy()
ServiceConstants.PROPERTY_GLOBAL_UPDATE_POLICYString getGlobalChecksumPolicy()
ServiceConstants.PROPERTY_GLOBAL_CHECKSUM_POLICYMavenRepositoryURL getLocalRepository()
Boolean useFallbackRepositories()
Integer getTimeout()
void enableProxy(URL url)
url - Enables the proxy server for a given URL.Map<String,Map<String,String>> getProxySettings(String... protocols)
protocols - protocols to be recognized.Map<String,Map<String,String>> getMirrors()
org.apache.maven.settings.Settings getSettings()
String getSecuritySettings()
org.ops4j.util.property.PropertyResolver getPropertyResolver()
Copyright © 2006-2014 OPS4J - Open Participation Software for Java. All Rights Reserved.