ShrinkWrap Resolver Maven Archive API 2.0.0-cr-1

org.jboss.shrinkwrap.resolver.api.maven.archive.importer
Interface PomlessMavenImporter

All Known Subinterfaces:
ConfiguredMavenImporter, MavenImporter

public interface PomlessMavenImporter

Instance of MavenImporter that allows to load configuration from a POM file

Author:
Karel Piwko

Method Summary
 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.
 

Method Detail

loadPomFromFile

PomEquippedMavenImporter loadPomFromFile(File pomFile)
                                         throws IllegalArgumentException,
                                                org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Configures the Maven Importer from Project Object Model contained in the specified POM File.

Parameters:
pomFile -
Returns:
Throws:
IllegalArgumentException - If no file was specified, if the file does not exist or points to a directory
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromFile

PomEquippedMavenImporter loadPomFromFile(File pomFile,
                                         String... profiles)
                                         throws IllegalArgumentException,
                                                org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Configures the Maven Importer from Project Object Model contained in the specified POM File.

Parameters:
pomFile -
profiles - Active/inactive profiles
Returns:
Throws:
IllegalArgumentException - If no file was specified, if the file does not exist or points to a directory
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromFile

PomEquippedMavenImporter loadPomFromFile(String pathToPomFile)
                                         throws IllegalArgumentException,
                                                org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified path. The path will be represented as a new File by means of File.File(String)

Parameters:
pathToPomFile -
Returns:
Throws:
IllegalArgumentException - If no path was specified, or if the path points to a file which does not exist or is a directory
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromFile

PomEquippedMavenImporter loadPomFromFile(String pathToPomFile,
                                         String... profiles)
                                         throws IllegalArgumentException,
                                                org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
Configures the Maven Importer from Project Object Model contained in the POM file located at the specified path. The path will be represented as a new File by means of File.File(String)

Parameters:
pathToPomFile -
profiles - Active/inactive profiles
Returns:
Throws:
IllegalArgumentException - If no path was specified, or if the path points to a file which does not exist or is a directory
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromClassLoaderResource

PomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource)
                                                        throws IllegalArgumentException,
                                                               org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
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().

Parameters:
pathToPomResource -
Returns:
Throws:
IllegalArgumentException - If no path was specified, or if the resource could not be found at the specified path
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromClassLoaderResource

PomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource,
                                                        ClassLoader cl)
                                                        throws IllegalArgumentException,
                                                               org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
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.

Parameters:
pathToPomResource -
cl -
Returns:
Throws:
IllegalArgumentException - If no path was specified, no ClassLoader was specified, or if the resource could not be found at the specified path
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

loadPomFromClassLoaderResource

PomEquippedMavenImporter loadPomFromClassLoaderResource(String pathToPomResource,
                                                        ClassLoader cl,
                                                        String... profiles)
                                                        throws IllegalArgumentException,
                                                               org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException
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.

Parameters:
pathToPomResource -
cl -
profiles - Active/inactive profiles
Returns:
Throws:
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 path
org.jboss.shrinkwrap.resolver.api.InvalidConfigurationFileException - If the configuration file contents are not in appropriate format

ShrinkWrap Resolver Maven Archive API 2.0.0-cr-1

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.