public interface ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage,PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE>> extends ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE,PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE>, MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>
Resolvers.use(Class)
or Resolvers.use(Class, ClassLoader)
, or instead call upon
Maven.configureResolver()
Modifier and Type | Method and Description |
---|---|
EQUIPPEDRESOLVESTAGETYPE |
configureViaPlugin()
Configures the current session from POM metadata found via the ShrinkWrap Resolver Maven Plugin; retrieves
information from the currently-running Maven process.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
useLegacyLocalRepo(boolean useLegacyLocalReposity)
Sets whether to consult artifact metadata in local repository and track origin of artifacts there;
ignores origin of artifacts in local repository.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
withClassPathResolution(boolean useClassPathResolution)
Sets that resolution from the ClassPath should be permitted in addition to configured repositories - defaults to
"true"
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
withMavenCentralRepo(boolean useMavenCentral)
Sets whether to consult the Maven Central Repository in resolution; defaults to true.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
withRemoteRepo(MavenRemoteRepository repository)
Adds a remote repository to use in resolution.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
withRemoteRepo(String name,
String url,
String layout)
Adds a remote repository to use in resolution.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
withRemoteRepo(String name,
URL url,
String layout)
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
workOffline()
Sets whether to consult any remote Maven Repository in resolution; ignores all remote repositories.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
workOffline(boolean workOffline)
Sets whether to consult any remote Maven Repository in resolution; defaults to false.
|
configureFromClassloaderResource, configureFromClassloaderResource, configureFromFile, configureFromFile, fromClassloaderResource, fromClassloaderResource, fromFile, fromFile
offline, offline
loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile
resolveVersionRange
addDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolve
EQUIPPEDRESOLVESTAGETYPE configureViaPlugin() throws InvalidEnvironmentException
EQUIPPEDRESOLVESTAGETYPE
for the configured current sessionInvalidEnvironmentException
- If the currently-executing environment is not under the control of the ShrinkWrap Resolver Maven
PluginPARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withClassPathResolution(boolean useClassPathResolution)
useClassPathResolution
- Whether that resolution from the ClassPath should be permitted in addition to
configured repositories - defaults to "true"PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withRemoteRepo(String name, String url, String layout)
name
- a unique arbitrary ID such as "codehaus"url
- the repository URL, such as "http://snapshots.maven.codehaus.org/maven2"layout
- the repository layout. Should always be "default" (may be reused one day by Maven with other values).PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
IllegalArgumentException
- if name or layout are null or if layout is not "default", or if no url protocol is
specified, or an unknown url protocol is found, or url is nullPARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withRemoteRepo(String name, URL url, String layout)
name
- a unique arbitrary ID such as "codehaus"url
- the repository URL, such as "http://snapshots.maven.codehaus.org/maven2"layout
- the repository layout. Should always be "default" (may be reused one day by Maven with other values).PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withRemoteRepo(MavenRemoteRepository repository)
MavenRemoteRepositories.createRemoteRepository(String, URL, String)
repository
- The remote repositoryPARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withMavenCentralRepo(boolean useMavenCentral)
useMavenCentral
- Whether to consult the Maven Central Repository in resolution; defaults to true.PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE workOffline(boolean workOffline)
workOffline
- Whether to consult any remote Maven Repository in resolution; defaults to false.PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE workOffline()
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE useLegacyLocalRepo(boolean useLegacyLocalReposity)
useLegacyLocalReposity
- Whether to ignore origin of artifacts in local repository; defaults to falsePARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE
Copyright © 2022 JBoss by Red Hat. All rights reserved.