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, resolveVersionRangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waituseLegacyLocalRepo, withClassPathResolution, withMavenCentralRepo, withRemoteRepo, withRemoteRepo, withRemoteRepo, workOffline, workOfflineoffline, offlineloadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFileresolveVersionRangeaddDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolvepublic 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 MavenWorkingSessionContainerpublic 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 fromResolverSystemIllegalArgumentException - If the file is not specified, is a directory, or does not existUnsupportedOperationException - If this ConfigurableResolverSystem does not support configuration by FileInvalidConfigurationFileException - 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 fromResolverSystemIllegalArgumentException - If the file is not specified, is a directory, or does not existUnsupportedOperationException - If this ConfigurableResolverSystem does not support configuration by FileInvalidConfigurationFileException - 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 resourceResolverSystemIllegalArgumentException - 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 classloaderResolverSystemIllegalArgumentException - 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
ConfigurableResolverSystemResolverSystem 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 resourceResolverSystemIllegalArgumentException - 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
ConfigurableResolverSystemResolverSystem 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 classloaderResolverSystemIllegalArgumentException - 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
ConfigurableResolverSystemResolverSystem 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 fromResolverSystemIllegalArgumentException - 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
ConfigurableResolverSystemResolverSystem 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 fromResolverSystemIllegalArgumentException - If the file is not specified, is a directory, or does not existInvalidConfigurationFileException - If the file is not in correct formatprotected abstract UNCONFIGURABLERESOLVERSYSTEMTYPE getUnconfigurableView()
ConfigurableMavenResolverSystemBaseConfigurableMavenResolverSystemBaseprotected abstract EQUIPPEDRESOLVESTAGETYPE createPomEquippedResolveStage()
Copyright © 2024 JBoss by Red Hat. All rights reserved.