public interface MavenImporter extends PomlessMavenImporter, org.jboss.shrinkwrap.api.Assignable
Modifier and Type | Method and Description |
---|---|
ConfiguredMavenImporter |
configureFromClassloaderResource(String path)
Optional operation.
|
ConfiguredMavenImporter |
configureFromClassloaderResource(String path,
ClassLoader cl)
Optional operation.
|
ConfiguredMavenImporter |
configureFromFile(File file)
Optional operation.
|
ConfiguredMavenImporter |
configureFromFile(String pathToFile)
Optional operation.
|
loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromClassLoaderResource, loadPomFromFile, loadPomFromFile, loadPomFromFile, loadPomFromFile, offline, offline
ConfiguredMavenImporter configureFromFile(File file) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
MavenImporter
from the specified settings.xml filefile
- A settings.xml File
this MavenImporter
should be configured from.MavenImporter
IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by
File
ConfiguredMavenImporter configureFromFile(String pathToFile) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
MavenImporter
from the specified settings.xml file at the specified
pathpathToFile
- A path to a settings.xml file this MavenImporter
should be configured from.MavenImporter
IllegalArgumentException
- If the file is not specified, is a directory, or does not existInvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatUnsupportedOperationException
- If this ConfigurableResolverSystem
does not support configuration by
File
InvalidConfigurationFileException
- If the configuration file contents are not in appropriate formatConfiguredMavenImporter configureFromClassloaderResource(String path) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
MavenImporter
from the result of
ClassLoader.getResource(String)
call using the current Thread.getContextClassLoader()
path
- A ClassLoader
path to a settings.xml file this MavenImporter
should be configured from.MavenImporter
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 formatConfiguredMavenImporter configureFromClassloaderResource(String path, ClassLoader cl) throws IllegalArgumentException, UnsupportedOperationException, InvalidConfigurationFileException
ConfigurableResolverSystem
from the result of
ClassLoader.getResource(String)
using the specified ClassLoader
path
- A ClassLoader
path to a settings.xml file this MavenImporter
should be configured from.cl
- A ClassLoader
MavenImporter
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 formatCopyright © 2022 JBoss by Red Hat. All rights reserved.