public abstract class ConfigurableMavenResolverSystemBaseImpl<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>,EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage> extends MavenResolverSystemBaseImpl<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE> implements ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>
ConfigurableMavenResolverSystem
Constructor and Description |
---|
ConfigurableMavenResolverSystemBaseImpl(UNEQUIPPEDRESOLVESTAGETYPE delegate)
Creates a new instance using the specified delegate, which is required and must also implement the
MavenWorkingSessionContainer SPI, else IllegalArgumentException will be thrown.. |
addDependencies, addDependencies, addDependency, getSession, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile, offline, offline, resolve, resolve, resolve, resolve, resolveVersionRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
useLegacyLocalRepo, withClassPathResolution, withMavenCentralRepo, withRemoteRepo, withRemoteRepo, withRemoteRepo, workOffline, workOffline
offline, offline
loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile
resolveVersionRange
addDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolve
public ConfigurableMavenResolverSystemBaseImpl(UNEQUIPPEDRESOLVESTAGETYPE delegate) throws IllegalArgumentException
MavenWorkingSessionContainer
SPI, else IllegalArgumentException
will be thrown..delegate
- The delegateIllegalArgumentException
- If the delegate
is either null or doesn't implement the MavenWorkingSessionContainer
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromFile(File file) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the specified file
This method is deprecated. Please use {#link ConfigurableResolverSystem.fromFile(File)
instead.configureFromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
file
- The file the ConfigurableResolverSystem
should be configured fromResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by File
InvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromFile(java.io.File)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromFile(String pathToFile) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the file at the specified path
This method is deprecated. Please use {#link ConfigurableResolverSystem.fromFile(String)
instead.configureFromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
pathToFile
- Path to the file the ConfigurableResolverSystem
should be configured fromResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by File
InvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromFile(java.lang.String)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromClassloaderResource(String path) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the result of
ClassLoader.getResource(String)
using the current Thread.getContextClassLoader()
This method is deprecated. Please use {#link ConfigurableResolverSystem.fromClassloaderResource(String)
instead.configureFromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
path
- Path to the classloader resourceResolverSystem
IllegalArgumentException
- If the either argument is not specified or if the path can not be foundUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by ClassLoader
resourceInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromClassloaderResource(java.lang.String)
public final UNCONFIGURABLERESOLVERSYSTEMTYPE configureFromClassloaderResource(String path, ClassLoader loader) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the result of
ClassLoader.getResource(String)
using the specified ClassLoader
This method is deprecated. Please use {#link ConfigurableResolverSystem.fromClassloaderResource(String, ClassLoader)
instead.configureFromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
path
- Path to the classloader resourceloader
- The classloaderResolverSystem
IllegalArgumentException
- If the either argument is not specified or if the path can not be foundUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by ClassLoader
resourceInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfigurableResolverSystem.configureFromClassloaderResource(java.lang.String,
java.lang.ClassLoader)
public final EQUIPPEDRESOLVESTAGETYPE configureViaPlugin() throws InvalidEnvironmentException
configureViaPlugin
in interface ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>,EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
EQUIPPEDRESOLVESTAGETYPE
for the configured current sessionInvalidEnvironmentException
- If the currently-executing environment is not under the control of the ShrinkWrap Resolver Maven
PluginConfigurableMavenResolverSystemBase.configureViaPlugin()
public UNCONFIGURABLERESOLVERSYSTEMTYPE fromClassloaderResource(String path) throws IllegalArgumentException, InvalidConfigurationFileException
ConfigurableResolverSystem
ResolverSystem
from the result of ClassLoader.getResource(String)
using the
current Thread.getContextClassLoader()
This method is deprecated. Please use {#link ConfigurableResolverSystem.configureFromClassloaderResource(String)
instead.fromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
path
- Path to the classloader resourceResolverSystem
IllegalArgumentException
- If the path is not specified or can not be foundInvalidConfigurationFileException
- If the file is not in correct formatpublic UNCONFIGURABLERESOLVERSYSTEMTYPE fromClassloaderResource(String path, ClassLoader loader) throws IllegalArgumentException, InvalidConfigurationFileException
ConfigurableResolverSystem
ResolverSystem
from the result of ClassLoader.getResource(String)
using the
specified ClassLoader
This method is deprecated. Please use {#link ConfigurableResolverSystem.configureFromClassloaderResource(String, ClassLoader)
instead.fromClassloaderResource
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
path
- Path to the classloader resourceloader
- The classloaderResolverSystem
IllegalArgumentException
- If the either argument is not specified or if the path can not be foundInvalidConfigurationFileException
- If the file is not in correct formatpublic UNCONFIGURABLERESOLVERSYSTEMTYPE fromFile(File file) throws IllegalArgumentException, InvalidConfigurationFileException
ConfigurableResolverSystem
ResolverSystem
from the specified filefromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
file
- The file the ResolverSystem
should be configured fromResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the file is not in correct formatpublic UNCONFIGURABLERESOLVERSYSTEMTYPE fromFile(String pathToFile) throws IllegalArgumentException, InvalidConfigurationFileException
ConfigurableResolverSystem
ResolverSystem
from the file at the specified path
This method is deprecated. Please use {#link ConfigurableResolverSystem.configureFromFile(String)
instead.fromFile
in interface ConfigurableResolverSystem<UNCONFIGURABLERESOLVERSYSTEMTYPE extends MavenResolverSystemBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,CONFIGURABLEBERESOLVERSYSTEMTYPE extends ConfigurableMavenResolverSystemBase<UNCONFIGURABLERESOLVERSYSTEMTYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE,EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE,CONFIGURABLEBERESOLVERSYSTEMTYPE>>
pathToFile
- Path to the file the ResolverSystem
should be configured fromResolverSystem
IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the file is not in correct formatprotected abstract UNCONFIGURABLERESOLVERSYSTEMTYPE getUnconfigurableView()
ConfigurableMavenResolverSystemBase
ConfigurableMavenResolverSystemBase
protected abstract EQUIPPEDRESOLVESTAGETYPE createPomEquippedResolveStage()
Copyright © 2022 JBoss by Red Hat. All rights reserved.