ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

org.jboss.shrinkwrap.resolver.impl.maven
Class MavenSettingsBuilder

java.lang.Object
  extended by org.jboss.shrinkwrap.resolver.impl.maven.MavenSettingsBuilder

public class MavenSettingsBuilder
extends Object

Builds Maven settings from arbitrary settings.xml file

Author:
Karel Piwko

Field Summary
static String ALT_GLOBAL_SETTINGS_XML_LOCATION
          Sets an alternate location of Maven global settings.xml configuration
static String ALT_LOCAL_REPOSITORY_LOCATION
          Sets an alternate location of Maven local repository
static String ALT_MAVEN_OFFLINE
          Sets Maven resolution either online or offline
static String ALT_USER_SETTINGS_XML_LOCATION
          Sets an alternate location to Maven user settings.xml configuration
 
Constructor Summary
MavenSettingsBuilder()
           
 
Method Summary
 org.apache.maven.settings.Settings buildDefaultSettings()
          Loads default Maven settings from standard location or from a location specified by a property
 org.apache.maven.settings.Settings buildSettings(File file)
          Loads Maven settings and updates session settings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALT_USER_SETTINGS_XML_LOCATION

public static final String ALT_USER_SETTINGS_XML_LOCATION
Sets an alternate location to Maven user settings.xml configuration

See Also:
Constant Field Values

ALT_GLOBAL_SETTINGS_XML_LOCATION

public static final String ALT_GLOBAL_SETTINGS_XML_LOCATION
Sets an alternate location of Maven global settings.xml configuration

See Also:
Constant Field Values

ALT_MAVEN_OFFLINE

public static final String ALT_MAVEN_OFFLINE
Sets Maven resolution either online or offline

See Also:
Constant Field Values

ALT_LOCAL_REPOSITORY_LOCATION

public static final String ALT_LOCAL_REPOSITORY_LOCATION
Sets an alternate location of Maven local repository

See Also:
Constant Field Values
Constructor Detail

MavenSettingsBuilder

public MavenSettingsBuilder()
Method Detail

buildDefaultSettings

public org.apache.maven.settings.Settings buildDefaultSettings()
Loads default Maven settings from standard location or from a location specified by a property

Returns:

buildSettings

public org.apache.maven.settings.Settings buildSettings(File file)
Loads Maven settings and updates session settings

Parameters:
file - The file which contains Maven settings

ShrinkWrap Resolver Aggregator 1.1.0-alpha-2

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