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 |
---|---|
static 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(File userSettingsFile) |
Settings |
buildSettings(File userSettingsFile,
boolean useCachedSettings) |
void |
initialize() |
public static final String userHome
public void initialize()
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public Settings buildSettings() throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings
in interface MavenSettingsBuilder
Settings
object from the user settings file.IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if anypublic Settings buildSettings(boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings
in interface MavenSettingsBuilder
useCachedSettings
- if true, doesn't reload the user settingsSettings
object from the user settings file.IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if anypublic Settings buildSettings(File userSettingsFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings
in interface MavenSettingsBuilder
userSettingsFile
- a given user settings fileSettings
object from the user settings file.IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if anypublic Settings buildSettings(File userSettingsFile, boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
buildSettings
in interface MavenSettingsBuilder
userSettingsFile
- a given user settings fileuseCachedSettings
- if true, doesn't reload the user settingsSettings
object from the user settings file.IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if anyCopyright © 2001-2014 The Apache Software Foundation. All Rights Reserved.