org.apache.maven.settings
Interface MavenSettingsBuilder

All Known Implementing Classes:
DefaultMavenSettingsBuilder

public interface MavenSettingsBuilder

Builder for the user or global settings. By default, the settings files are located:

You could also use system properties to specify the path for user and global settings:

Version:
$Id: MavenSettingsBuilder.java 541186 2007-05-24 05:41:34Z vsiveton $
Author:
jdcasey

Field Summary
static java.lang.String ALT_GLOBAL_SETTINGS_XML_LOCATION
           
static java.lang.String ALT_LOCAL_REPOSITORY_LOCATION
           
static java.lang.String ALT_USER_SETTINGS_XML_LOCATION
           
static java.lang.String ROLE
           
 
Method Summary
 org.apache.maven.settings.Settings buildSettings()
           
 org.apache.maven.settings.Settings buildSettings(boolean useCachedSettings)
           
 org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile)
           
 org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile, boolean useCachedSettings)
           
 

Field Detail

ROLE

static final java.lang.String ROLE

ALT_USER_SETTINGS_XML_LOCATION

static final java.lang.String ALT_USER_SETTINGS_XML_LOCATION
See Also:
Constant Field Values

ALT_GLOBAL_SETTINGS_XML_LOCATION

static final java.lang.String ALT_GLOBAL_SETTINGS_XML_LOCATION
See Also:
Constant Field Values

ALT_LOCAL_REPOSITORY_LOCATION

static final java.lang.String ALT_LOCAL_REPOSITORY_LOCATION
See Also:
Constant Field Values
Method Detail

buildSettings

org.apache.maven.settings.Settings buildSettings()
                                                 throws java.io.IOException,
                                                        org.codehaus.plexus.util.xml.pull.XmlPullParserException
Returns:
a Settings object from the user settings file.
Throws:
java.io.IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

org.apache.maven.settings.Settings buildSettings(boolean useCachedSettings)
                                                 throws java.io.IOException,
                                                        org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
useCachedSettings - if true, doesn't reload the user settings
Returns:
a Settings object from the user settings file.
Throws:
java.io.IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile)
                                                 throws java.io.IOException,
                                                        org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
userSettingsFile - a given user settings file
Returns:
a Settings object from the user settings file.
Throws:
java.io.IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any

buildSettings

org.apache.maven.settings.Settings buildSettings(java.io.File userSettingsFile,
                                                 boolean useCachedSettings)
                                                 throws java.io.IOException,
                                                        org.codehaus.plexus.util.xml.pull.XmlPullParserException
Parameters:
userSettingsFile - a given user settings file
useCachedSettings - if true, doesn't reload the user settings
Returns:
a Settings object from the user settings file.
Throws:
java.io.IOException - if any
org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any


Copyright © 2001-2010 Apache Software Foundation. All Rights Reserved.