public class DefaultMavenSettingsBuilder extends AbstractLogEnabled implements MavenSettingsBuilder
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
userHome |
ALT_GLOBAL_SETTINGS_XML_LOCATION, ALT_LOCAL_REPOSITORY_LOCATION, ALT_USER_SETTINGS_XML_LOCATION, ROLE| Constructor and Description |
|---|
DefaultMavenSettingsBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Settings |
buildSettings() |
Settings |
buildSettings(boolean useCachedSettings) |
Settings |
buildSettings(java.io.File userSettingsFile) |
Settings |
buildSettings(java.io.File userSettingsFile,
boolean useCachedSettings) |
void |
initialize() |
public void initialize()
public Settings buildSettings()
throws java.io.IOException,
XmlPullParserException
buildSettings in interface MavenSettingsBuilderSettings object from the user settings file.java.io.IOException - if anyXmlPullParserException - if anypublic Settings buildSettings(boolean useCachedSettings)
throws java.io.IOException,
XmlPullParserException
buildSettings in interface MavenSettingsBuilderuseCachedSettings - if true, doesn't reload the user settingsSettings object from the user settings file.java.io.IOException - if anyXmlPullParserException - if anypublic Settings buildSettings(java.io.File userSettingsFile)
throws java.io.IOException,
XmlPullParserException
buildSettings in interface MavenSettingsBuilderuserSettingsFile - a given user settings fileSettings object from the user settings file.java.io.IOException - if anyXmlPullParserException - if anypublic Settings buildSettings(java.io.File userSettingsFile,
boolean useCachedSettings)
throws java.io.IOException,
XmlPullParserException
buildSettings in interface MavenSettingsBuilderuserSettingsFile - a given user settings fileuseCachedSettings - if true, doesn't reload the user settingsSettings object from the user settings file.java.io.IOException - if anyXmlPullParserException - if any