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 |
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; defaults to false.
|
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE |
workOffline(boolean workOffline)
Sets whether to consult any remote Maven Repository in resolution; defaults to false.
|
configureFromClassloaderResource, configureFromClassloaderResource, configureFromFile, configureFromFile, fromClassloaderResource, fromClassloaderResource, fromFile, fromFileoffline, offlineloadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFileresolveVersionRangeaddDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolveEQUIPPEDRESOLVESTAGETYPE configureViaPlugin() throws InvalidEnvironmentException
InvalidEnvironmentException - If the currently-executing environment is not under the control of the ShrinkWrap Resolver Maven
PluginPARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withClassPathResolution(boolean useClassPathResolution)
useClassPathResolution - 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).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)
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withRemoteRepo(MavenRemoteRepository repository)
MavenRemoteRepositories#createRemoteRepository(String, String)PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE withMavenCentralRepo(boolean useMavenCentral)
useMavenCentral - PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE workOffline(boolean workOffline)
PARTIALLYCONFIGUREDRESOLVERSYSTEMTYPE workOffline()
Copyright © 2014 JBoss by Red Hat. All rights reserved.