Class 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 $
    Author:
    jdcasey
    • Field Detail

      • userHome

        public static final java.lang.String userHome
    • Constructor Detail

      • DefaultMavenSettingsBuilder

        public DefaultMavenSettingsBuilder()
    • Method Detail

      • initialize

        public void initialize()
        Specified by:
        initialize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
      • buildSettings

        public Settings buildSettings()
                               throws java.io.IOException,
                                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Specified by:
        buildSettings in interface MavenSettingsBuilder
        Returns:
        a Settings object from the user settings file.
        Throws:
        java.io.IOException - if any
        org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any
      • buildSettings

        public Settings buildSettings​(boolean useCachedSettings)
                               throws java.io.IOException,
                                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Specified by:
        buildSettings in interface MavenSettingsBuilder
        Parameters:
        useCachedSettings - if true, doesn't reload the user settings
        Returns:
        a Settings object from the user settings file.
        Throws:
        java.io.IOException - if any
        org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any
      • buildSettings

        public Settings buildSettings​(java.io.File userSettingsFile)
                               throws java.io.IOException,
                                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Specified by:
        buildSettings in interface MavenSettingsBuilder
        Parameters:
        userSettingsFile - a given user settings file
        Returns:
        a Settings object from the user settings file.
        Throws:
        java.io.IOException - if any
        org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any
      • buildSettings

        public Settings buildSettings​(java.io.File userSettingsFile,
                                      boolean useCachedSettings)
                               throws java.io.IOException,
                                      org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Specified by:
        buildSettings in interface MavenSettingsBuilder
        Parameters:
        userSettingsFile - a given user settings file
        useCachedSettings - if true, doesn't reload the user settings
        Returns:
        a Settings object from the user settings file.
        Throws:
        java.io.IOException - if any
        org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any