|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.resolver.api.maven.Maven
public class Maven
Shorthand convenience API where the call resolver() is analogous to a more longhand, formal call to
Resolvers.use(Class), passing MavenResolverSystem as the argument. Also supports configuration via
configureResolver().
| Constructor Summary | |
|---|---|
Maven()
|
|
| Method Summary | |
|---|---|
static ConfiguredResolverSystemFactory<MavenResolverSystem,ConfigurableMavenResolverSystem> |
configureResolver()
Creates and returns a new ConfiguredResolverSystemFactory instance which may be used to create new
MavenResolverSystem instances |
static PomEquippedResolveStage |
configureResolverViaPlugin()
Configures the MavenResolverSystem with settings.xml and POM metadata as picked up from the
environment (these properties are set by the ShrinkWrap Maven Resolver Plugin). |
static PomEquippedResolveStage |
configureResolverViaPlugin(ClassLoader cl)
Configures the MavenResolverSystem with settings.xml and POM metadata as picked up from the
environment (these properties are set by the ShrinkWrap Maven Resolver Plugin). |
static MavenResolverSystem |
resolver()
Creates and returns a new MavenResolverSystem instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Maven()
| Method Detail |
|---|
public static MavenResolverSystem resolver()
MavenResolverSystem instance
public static ConfiguredResolverSystemFactory<MavenResolverSystem,ConfigurableMavenResolverSystem> configureResolver()
ConfiguredResolverSystemFactory instance which may be used to create new
MavenResolverSystem instances
public static PomEquippedResolveStage configureResolverViaPlugin()
throws InvalidEnvironmentException
MavenResolverSystem with settings.xml and POM metadata as picked up from the
environment (these properties are set by the ShrinkWrap Maven Resolver Plugin). The new instance will be created
by the current Thread.getContextClassLoader().
InvalidEnvironmentException - If this is executed outside the context of the ShrinkWrap Maven Resolver Plugin Environment
public static PomEquippedResolveStage configureResolverViaPlugin(ClassLoader cl)
throws InvalidEnvironmentException,
IllegalArgumentException
MavenResolverSystem with settings.xml and POM metadata as picked up from the
environment (these properties are set by the ShrinkWrap Maven Resolver Plugin).
cl - The ClassLoader used to create the new instance; required
IllegalArgumentException - If the ClassLoader is not specified
InvalidEnvironmentException - If this is executed outside the context of the ShrinkWrap Maven Resolver Plugin Environment
|
ShrinkWrap Resolver Maven API 2.0.0-cr-1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||