public interface PomlessMavenImporter
MavenImporter that allows to load configuration from a POM file| Modifier and Type | Method and Description |
|---|---|
PomEquippedMavenImporter |
loadPomFromClassLoaderResource(String pathToPomResource)
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified
ClassLoader resource path, loaded by the current Thread.getContextClassLoader(). |
PomEquippedMavenImporter |
loadPomFromClassLoaderResource(String pathToPomResource,
ClassLoader cl)
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified
ClassLoader resource path, loaded by the specified ClassLoader. |
PomEquippedMavenImporter |
loadPomFromClassLoaderResource(String pathToPomResource,
ClassLoader cl,
String... profiles)
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified
ClassLoader resource path, loaded by the specified ClassLoader. |
PomEquippedMavenImporter |
loadPomFromFile(File pomFile)
Configures the Maven Importer from Project Object Model contained in the specified POM
File. |
PomEquippedMavenImporter |
loadPomFromFile(File pomFile,
String... profiles)
Configures the Maven Importer from Project Object Model contained in the specified POM
File. |
PomEquippedMavenImporter |
loadPomFromFile(String pathToPomFile)
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified path.
|
PomEquippedMavenImporter |
loadPomFromFile(String pathToPomFile,
String... profiles)
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified path.
|
PomlessMavenImporter |
offline()
Optional operation.
|
PomlessMavenImporter |
offline(boolean offline)
Optional operation.
|
PomEquippedMavenImporter loadPomFromFile(File pomFile) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
File.pomFile - A POM File the maven Importer should be configured from.IllegalArgumentException - If no file was specified, if the file does not exist or points to a directoryorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromFile(File pomFile, String... profiles) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
File.pomFile - A POM File the maven Importer should be configured from.profiles - Active/inactive profilesIllegalArgumentException - If no file was specified, if the file does not exist or points to a directoryorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromFile(String pathToPomFile) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
File by means of File.File(String)pathToPomFile - A path to a POM file the maven Importer should be configured from.IllegalArgumentException - If no path was specified, or if the path points to a file which does not exist or is a
directoryorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromFile(String pathToPomFile, String... profiles) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
File by means of File.File(String)pathToPomFile - A path to a POM file the maven Importer should be configured from.profiles - Active/inactive profilesIllegalArgumentException - If no path was specified, or if the path points to a file which does not exist or is a
directoryorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
ClassLoader resource path, loaded by the current Thread.getContextClassLoader().pathToPomResource - A ClassLoader resource path to a POM filee the maven Importer should be configured from.IllegalArgumentException - If no path was specified, or if the resource could not be found at the specified pathorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource, ClassLoader cl) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
ClassLoader resource path, loaded by the specified ClassLoader.pathToPomResource - A ClassLoader resource path to a POM filee the maven Importer should be configured from.cl - A ClassLoaderIllegalArgumentException - If no path was specified, no ClassLoader was specified, or if the resource could not be
found at the specified pathorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource, ClassLoader cl, String... profiles) throws IllegalArgumentException, org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
ClassLoader resource path, loaded by the specified ClassLoader.pathToPomResource - A ClassLoader resource path to a POM filee the maven Importer should be configured from.cl - A ClassLoaderprofiles - Active/inactive profilesIllegalArgumentException - 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 pathorg.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate formatPomlessMavenImporter offline(boolean offline)
offline - Whether resolution should be done in "offline". By default, resolution is done in online mode.PomlessMavenImporter instancePomlessMavenImporter offline()
offline(boolean), passing true as a parameter.PomlessMavenImporter instanceCopyright © 2020 JBoss by Red Hat. All rights reserved.