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
@Named
@Singleton
public class DefaultMavenSettingsBuilder
extends org.codehaus.plexus.logging.AbstractLogEnabled
implements MavenSettingsBuilder
- Author:
- jdcasey
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionbuildSettings
(boolean useCachedSettings) buildSettings
(File userSettingsFile) buildSettings
(File userSettingsFile, boolean useCachedSettings) buildSettings
(MavenExecutionRequest request) Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Constructor Details
-
DefaultMavenSettingsBuilder
-
-
Method Details
-
buildSettings
- Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyXmlPullParserException
- if any
-
buildSettings
- 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 anyXmlPullParserException
- if any
-
buildSettings
- Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Parameters:
userSettingsFile
- a given user settings file- Returns:
- a
Settings
object from the user settings file. - Throws:
IOException
- if anyXmlPullParserException
- if any
-
buildSettings
public Settings buildSettings(File userSettingsFile, boolean useCachedSettings) throws IOException, 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 anyXmlPullParserException
- if any
-
buildSettings
public Settings buildSettings(MavenExecutionRequest request) throws IOException, XmlPullParserException - Specified by:
buildSettings
in interfaceMavenSettingsBuilder
- Throws:
IOException
XmlPullParserException
- Since:
- 2.1
-