public class StackResolutionOptions extends ResolverOptions
HTTP_PROXY_SYS_PROP, HTTPS_PROXY_SYS_PROP, LOCAL_REPO_SYS_PROP, REMOTE_REPOS_SYS_PROP| Constructor and Description |
|---|
StackResolutionOptions() |
| Modifier and Type | Method and Description |
|---|---|
File |
getCacheFile() |
boolean |
isCacheDisabled() |
boolean |
isCacheDisabledForSnapshots() |
boolean |
isFailOnConflicts() |
StackResolutionOptions |
setCacheDisabled(boolean cacheDisabled)
Sets whether or not the cache is disabled.
|
StackResolutionOptions |
setCacheDisabledForSnapshots(boolean cacheDisabledForSnapshots)
Sets whether or not the cache is disabled for snapshot.
|
StackResolutionOptions |
setCacheFile(File cacheFile)
Sets the cache file location (json file).
|
StackResolutionOptions |
setFailOnConflicts(boolean failOnConflicts)
Sets whether or not the resolution should fail on conflicts.
|
StackResolutionOptions |
setHttpProxy(String httpProxy)
Sets the address of the proxy used for HTTP requests.
|
StackResolutionOptions |
setHttpsProxy(String httpsProxy)
Sets the address of the proxy used for HTTPS requests.
|
StackResolutionOptions |
setLocalRepository(String localRepository)
Sets the path to the local Maven repository.
|
StackResolutionOptions |
setRemoteRepositories(List<String> remoteRepositories)
Sets the list of remote repositories used by the resolver.
|
getHttpProxy, getHttpsProxy, getLocalRepository, getRemoteRepositoriespublic boolean isFailOnConflicts()
public StackResolutionOptions setFailOnConflicts(boolean failOnConflicts)
failOnConflicts - whether or not the resolution fails on conflicts.StackResolutionOptions instancepublic StackResolutionOptions setHttpProxy(String httpProxy)
ResolverOptionssetHttpProxy in class ResolverOptionshttpProxy - the proxy addressResolverOptions instancepublic StackResolutionOptions setHttpsProxy(String httpsProxy)
ResolverOptionssetHttpsProxy in class ResolverOptionshttpsProxy - the proxy addressResolverOptions instancepublic StackResolutionOptions setLocalRepository(String localRepository)
ResolverOptionssetLocalRepository in class ResolverOptionslocalRepository - the local repositoryResolverOptions instancepublic StackResolutionOptions setRemoteRepositories(List<String> remoteRepositories)
ResolverOptionssetRemoteRepositories in class ResolverOptionsremoteRepositories - the list of remote repositoriesResolverOptions instancepublic boolean isCacheDisabled()
public StackResolutionOptions setCacheDisabled(boolean cacheDisabled)
cacheDisabled - true to disable the cache, false to enable it (default)StackResolutionOptions instancepublic boolean isCacheDisabledForSnapshots()
public StackResolutionOptions setCacheDisabledForSnapshots(boolean cacheDisabledForSnapshots)
cacheDisabledForSnapshots - true to disable the cache for snapshot, false to enable it
(default)StackResolutionOptions instancepublic File getCacheFile()
public StackResolutionOptions setCacheFile(File cacheFile)
cacheFile - the cache fileStackResolutionOptions instanceCopyright © 2016–2019. All rights reserved.