public class DefaultMavenSettingsBuilder extends org.codehaus.plexus.logging.AbstractLogEnabled implements MavenSettingsBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
globalSettingsFile |
private java.lang.String |
globalSettingsPath |
private Settings |
loadedSettings |
static java.lang.String |
userHome |
private java.io.File |
userSettingsFile |
private java.lang.String |
userSettingsPath |
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 |
|---|---|
private void |
activateDefaultProfiles(Settings settings) |
Settings |
buildSettings() |
Settings |
buildSettings(boolean useCachedSettings) |
Settings |
buildSettings(java.io.File userSettingsFile) |
Settings |
buildSettings(java.io.File userSettingsFile,
boolean useCachedSettings) |
private java.io.File |
getFile(java.lang.String pathPattern,
java.lang.String basedirSysProp,
java.lang.String altLocationSysProp) |
void |
initialize() |
private Settings |
readSettings(java.io.File settingsFile) |
private void |
setLocalRepository(Settings userSettings) |
public static final java.lang.String userHome
private java.lang.String userSettingsPath
private java.lang.String globalSettingsPath
private java.io.File userSettingsFile
private java.io.File globalSettingsFile
private Settings loadedSettings
public void initialize()
initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializableprivate Settings readSettings(java.io.File settingsFile) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
java.io.IOExceptionorg.codehaus.plexus.util.xml.pull.XmlPullParserExceptionpublic Settings buildSettings() throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings in interface MavenSettingsBuilderSettings object from the user settings file.java.io.IOException - if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException - if anypublic Settings buildSettings(boolean useCachedSettings) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings in interface MavenSettingsBuilderuseCachedSettings - if true, doesn't reload the user settingsSettings object from the user settings file.java.io.IOException - if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException - if anypublic Settings buildSettings(java.io.File userSettingsFile) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings in interface MavenSettingsBuilderuserSettingsFile - a given user settings fileSettings object from the user settings file.java.io.IOException - if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException - if anypublic Settings buildSettings(java.io.File userSettingsFile, boolean useCachedSettings) throws java.io.IOException, org.codehaus.plexus.util.xml.pull.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 anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException - if anyprivate void activateDefaultProfiles(Settings settings)
private void setLocalRepository(Settings userSettings)
private java.io.File getFile(java.lang.String pathPattern,
java.lang.String basedirSysProp,
java.lang.String altLocationSysProp)