public interface PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE extends PomEquippedResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,UNEQUIPPEDRESOLVESTAGETYPE extends PomlessResolveStageBase<EQUIPPEDRESOLVESTAGETYPE,UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>,STRATEGYSTAGETYPE extends MavenStrategyStageBase<STRATEGYSTAGETYPE,FORMATSTAGETYPE>,FORMATSTAGETYPE extends MavenFormatStage> extends MavenResolveStageBase<UNEQUIPPEDRESOLVESTAGETYPE,STRATEGYSTAGETYPE,FORMATSTAGETYPE>
ResolveStage
is able to load POM (Project Object Model)
metadataModifier and Type | Method and Description |
---|---|
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromClassLoaderResource(String pathToPomResource)
Configures the Maven Resolver System Project Object Model from metadata contained in the POM file located at the
specified
ClassLoader resource path, loaded by the current Thread.getContextClassLoader() . |
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromClassLoaderResource(String pathToPomResource,
ClassLoader cl)
Configures the Maven Resolver System Project Object Model from metadata contained in the POM file located at the
specified
ClassLoader resource path, loaded by the specified ClassLoader . |
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromClassLoaderResource(String pathToPomResource,
ClassLoader cl,
String... profiles)
Configures the Maven Resolver System Project Object Model from metadata contained in the POM file located at the
specified
ClassLoader resource path, loaded by the specified ClassLoader . |
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromFile(File pomFile)
Configures the Maven Resolver System Project Object Model from metadata contained in the specified POM
File . |
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromFile(File pomFile,
String... profiles)
Configures the Maven Resolver System Project Object Model from metadata contained in the specified POM
File . |
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromFile(String pathToPomFile)
Configures the Maven Resolver System Project Object Model from metadata contained in the POM file located at the
specified path.
|
EQUIPPEDRESOLVESTAGETYPE |
loadPomFromFile(String pathToPomFile,
String... profiles)
Configures the Maven Resolver System Project Object Model from metadata contained in the POM file located at the
specified path.
|
resolveVersionRange
addDependencies, addDependencies, addDependency, resolve, resolve, resolve, resolve
EQUIPPEDRESOLVESTAGETYPE loadPomFromFile(File pomFile) throws IllegalArgumentException, InvalidConfigurationFileException
File
.pomFile
- The File
representing a POM filePomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no file was specified, if the file does not exist or points to a directoryInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromFile(File pomFile, String... profiles) throws IllegalArgumentException, InvalidConfigurationFileException
File
.pomFile
- The File
representing a POM fileprofiles
- List of profiles to activated/disabled
Active/inactive profilesPomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no file was specified, if the file does not exist or points to a directoryInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromFile(String pathToPomFile) throws IllegalArgumentException, InvalidConfigurationFileException
File
by means of File(String)
pathToPomFile
- The path to a POM filePomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no path was specified, or if the path points to a file which does not exist or is a directoryInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromFile(String pathToPomFile, String... profiles) throws IllegalArgumentException, InvalidConfigurationFileException
File
by means of File(String)
pathToPomFile
- The path to a POM fileprofiles
- List of profiles to activated/disabled
Active/inactive profilesPomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no path was specified, or if the path points to a file which does not exist or is a directoryInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromClassLoaderResource(String pathToPomResource) throws IllegalArgumentException, InvalidConfigurationFileException
ClassLoader
resource path, loaded by the current Thread.getContextClassLoader()
.pathToPomResource
- The ClassLoader
resource path to a POM file.PomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no path was specified, or if the resource could not be found at the specified pathInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromClassLoaderResource(String pathToPomResource, ClassLoader cl) throws IllegalArgumentException, InvalidConfigurationFileException
ClassLoader
resource path, loaded by the specified ClassLoader
.pathToPomResource
- The ClassLoader
resource path to a POM file.cl
- The ClassLoader
PomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no path was specified, no ClassLoader was specified, or if the resource could not be found at the
specified pathInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
EQUIPPEDRESOLVESTAGETYPE loadPomFromClassLoaderResource(String pathToPomResource, ClassLoader cl, String... profiles) throws IllegalArgumentException, InvalidConfigurationFileException
ClassLoader
resource path, loaded by the specified ClassLoader
.pathToPomResource
- The ClassLoader
resource path to a POM file.cl
- The ClassLoader
profiles
- List of profiles to activated/disabled
Active/inactive profilesPomEquippedResolveStageBase
instance for the current MavenWorkingSession
IllegalArgumentException
- If no path was specified, no ClassLoader was specified, any specified profiles are invalid or null,
or if the resource could not be found at the specified pathInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatMavenWorkingSession.loadPomFromFile(File, String...)
Copyright © 2022 JBoss by Red Hat. All rights reserved.