Package org.apache.maven.settings
Interface MavenSettingsBuilder
-
- All Known Implementing Classes:
DefaultMavenSettingsBuilder
public interface MavenSettingsBuilderBuilder for the user or global settings. By default, the settings files are located:- user settings: ${user.home}/settings.xml
- global settings: ${maven.home}/conf/settings.xml
- user settings is defined by
org.apache.maven.user-settings - global settings is defined by
org.apache.maven.global-settings
- Version:
- $Id: MavenSettingsBuilder.java 638306 2008-03-18 10:20:28Z bentmann $
- Author:
- jdcasey
-
-
Field Summary
Fields Modifier and Type Field Description static StringALT_GLOBAL_SETTINGS_XML_LOCATIONstatic StringALT_LOCAL_REPOSITORY_LOCATIONstatic StringALT_USER_SETTINGS_XML_LOCATIONstatic StringROLE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SettingsbuildSettings()SettingsbuildSettings(boolean useCachedSettings)SettingsbuildSettings(File userSettingsFile)SettingsbuildSettings(File userSettingsFile, boolean useCachedSettings)
-
-
-
Field Detail
-
ROLE
static final String ROLE
-
ALT_USER_SETTINGS_XML_LOCATION
static final String ALT_USER_SETTINGS_XML_LOCATION
- See Also:
- Constant Field Values
-
ALT_GLOBAL_SETTINGS_XML_LOCATION
static final String ALT_GLOBAL_SETTINGS_XML_LOCATION
- See Also:
- Constant Field Values
-
ALT_LOCAL_REPOSITORY_LOCATION
static final String ALT_LOCAL_REPOSITORY_LOCATION
- See Also:
- Constant Field Values
-
-
Method Detail
-
buildSettings
Settings buildSettings() throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Returns:
- a
Settingsobject from the user settings file. - Throws:
IOException- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException- if any
-
buildSettings
Settings buildSettings(boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
useCachedSettings- if true, doesn't reload the user settings- Returns:
- a
Settingsobject from the user settings file. - Throws:
IOException- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException- if any
-
buildSettings
Settings buildSettings(File userSettingsFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
userSettingsFile- a given user settings file- Returns:
- a
Settingsobject from the user settings file. - Throws:
IOException- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException- if any
-
buildSettings
Settings buildSettings(File userSettingsFile, boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
- Parameters:
userSettingsFile- a given user settings fileuseCachedSettings- if true, doesn't reload the user settings- Returns:
- a
Settingsobject from the user settings file. - Throws:
IOException- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException- if any
-
-