Class DefaultMavenSettingsBuilder

java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.apache.maven.settings.DefaultMavenSettingsBuilder
All Implemented Interfaces:
MavenSettingsBuilder, org.codehaus.plexus.logging.LogEnabled

@Component(role=MavenSettingsBuilder.class) public class DefaultMavenSettingsBuilder extends org.codehaus.plexus.logging.AbstractLogEnabled implements MavenSettingsBuilder
Author:
jdcasey
  • Constructor Details

    • DefaultMavenSettingsBuilder

      public DefaultMavenSettingsBuilder()
  • Method Details

    • buildSettings

      public Settings buildSettings() throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Specified by:
      buildSettings in interface MavenSettingsBuilder
      Returns:
      a Settings object from the user settings file.
      Throws:
      IOException - if any
      org.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 interface MavenSettingsBuilder
      Parameters:
      useCachedSettings - if true, doesn't reload the user settings
      Returns:
      a Settings object from the user settings file.
      Throws:
      IOException - if any
      org.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 interface MavenSettingsBuilder
      Parameters:
      userSettingsFile - a given user settings file
      Returns:
      a Settings object from the user settings file.
      Throws:
      IOException - if any
      org.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 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:
      IOException - if any
      org.codehaus.plexus.util.xml.pull.XmlPullParserException - if any
    • buildSettings

      public Settings buildSettings(MavenExecutionRequest request) throws IOException, org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Specified by:
      buildSettings in interface MavenSettingsBuilder
      Throws:
      IOException
      org.codehaus.plexus.util.xml.pull.XmlPullParserException
      Since:
      2.1