ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

org.jboss.shrinkwrap.resolver.api.maven
Interface MavenImporter

All Superinterfaces:
org.jboss.shrinkwrap.api.Assignable
All Known Implementing Classes:
MavenImporterImpl

public interface MavenImporter
extends org.jboss.shrinkwrap.api.Assignable

An ShrinkWrap importer which is able to reuse information in a pom file in order to help you build the archive content. This importer in intended to run in integration-test phase as it requires Maven to prepare the artifacts.

Author:
Nested Class Summary
static interface MavenImporter.EffectivePomMavenImporter
          A ShrinkWrap importer which already has metadata required in order to modify the archive.
 
Method Summary
 MavenImporter configureFrom(String path)
          Configures MavenImporter using setting.xml file.
 MavenImporter.EffectivePomMavenImporter loadEffectivePom(String path, String... profiles)
          Loads effective pom from a given location.
 
Methods inherited from interface org.jboss.shrinkwrap.api.Assignable
as
 

Method Detail

configureFrom

MavenImporter configureFrom(String path)
Configures MavenImporter using setting.xml file.

Parameters:
path - A path to a settings.xml configuration file
Returns:
the MavenImporter with a configuration from given file

loadEffectivePom

MavenImporter.EffectivePomMavenImporter loadEffectivePom(String path,
                                                         String... profiles)
Loads effective pom from a given location. Profiles are not determined by runtime, so user have to specify all active profile by himself.

Parameters:
path - The path to the effective pom.
profiles - The profiles to be activated
Returns:
MavenImporter which is able to enrich current archive

ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.