Package org.apache.maven.settings
Class DefaultMavenSettingsBuilder
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.settings.DefaultMavenSettingsBuilder
- All Implemented Interfaces:
MavenSettingsBuilder
,org.codehaus.plexus.logging.LogEnabled
,org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
public class DefaultMavenSettingsBuilder
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenSettingsBuilder, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
- Version:
- $Id: DefaultMavenSettingsBuilder.java 747683 2009-02-25 06:52:54Z brett $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
private String
private Settings
static final String
private File
private String
Fields inherited from interface org.apache.maven.settings.MavenSettingsBuilder
ALT_GLOBAL_SETTINGS_XML_LOCATION, ALT_LOCAL_REPOSITORY_LOCATION, ALT_USER_SETTINGS_XML_LOCATION, ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
activateDefaultProfiles
(Settings settings) buildSettings
(boolean useCachedSettings) buildSettings
(File userSettingsFile) buildSettings
(File userSettingsFile, boolean useCachedSettings) private File
void
private Settings
readSettings
(File settingsFile) private void
setLocalRepository
(Settings userSettings) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
userHome
-
userSettingsPath
-
globalSettingsPath
-
userSettingsFile
-
globalSettingsFile
-
loadedSettings
-
-
Constructor Details
-
DefaultMavenSettingsBuilder
public DefaultMavenSettingsBuilder()
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initialize
in interfaceorg.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
-
readSettings
private Settings readSettings(File settingsFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Throws:
IOException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
buildSettings
public Settings buildSettings() throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException- Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
-
buildSettings
public Settings buildSettings(boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Parameters:
useCachedSettings
- if true, doesn't reload the user settings- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
-
buildSettings
public Settings buildSettings(File userSettingsFile) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Parameters:
userSettingsFile
- a given user settings file- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
-
buildSettings
public Settings buildSettings(File userSettingsFile, boolean useCachedSettings) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException - Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Parameters:
userSettingsFile
- a given user settings fileuseCachedSettings
- if true, doesn't reload the user settings- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyorg.codehaus.plexus.util.xml.pull.XmlPullParserException
- if any
-
activateDefaultProfiles
-
setLocalRepository
-
getFile
-