public class ResolverOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_PROXY_SYS_PROP |
static String |
HTTPS_PROXY_SYS_PROP |
static String |
LOCAL_REPO_SYS_PROP |
static String |
REMOTE_REPOS_SYS_PROP |
static String |
REMOTE_SNAPSHOT_POLICY_SYS_PROP |
| Constructor and Description |
|---|
ResolverOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getHttpProxy() |
String |
getHttpsProxy() |
String |
getLocalRepository() |
List<String> |
getRemoteRepositories() |
String |
getRemoteSnapshotPolicy()
Gets the remote snapshot policy.
|
ResolverOptions |
setHttpProxy(String httpProxy)
Sets the address of the proxy used for HTTP requests.
|
ResolverOptions |
setHttpsProxy(String httpsProxy)
Sets the address of the proxy used for HTTPS requests.
|
ResolverOptions |
setLocalRepository(String localRepository)
Sets the path to the local Maven repository.
|
ResolverOptions |
setRemoteRepositories(List<String> remoteRepositories)
Sets the list of remote repositories used by the resolver.
|
ResolverOptions |
setRemoteSnapshotPolicy(String remoteSnapshotPolicy)
Sets the remote snapshot policy (`daily` by default).
|
public static final String LOCAL_REPO_SYS_PROP
public static final String REMOTE_REPOS_SYS_PROP
public static final String HTTP_PROXY_SYS_PROP
public static final String HTTPS_PROXY_SYS_PROP
public static final String REMOTE_SNAPSHOT_POLICY_SYS_PROP
public String getHttpProxy()
null if none.public ResolverOptions setHttpProxy(String httpProxy)
httpProxy - the proxy addressResolverOptions instancepublic String getHttpsProxy()
null if none.public ResolverOptions setHttpsProxy(String httpsProxy)
httpsProxy - the proxy addressResolverOptions instancepublic String getLocalRepository()
public ResolverOptions setLocalRepository(String localRepository)
localRepository - the local repositoryResolverOptions instancepublic List<String> getRemoteRepositories()
public ResolverOptions setRemoteRepositories(List<String> remoteRepositories)
remoteRepositories - the list of remote repositoriesResolverOptions instancepublic String getRemoteSnapshotPolicy()
public ResolverOptions setRemoteSnapshotPolicy(String remoteSnapshotPolicy)
daily, never, always and
interval:X where X is the number of minutes between two resolutions.remoteSnapshotPolicy - the desired policyResolverOptions instanceCopyright © 2023 Eclipse. All rights reserved.