Class DefaultMavenSettingsBuilder

    • Constructor Detail

      • DefaultMavenSettingsBuilder

        public DefaultMavenSettingsBuilder()
    • Method Detail

      • 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
      • build

        private Settings build​(SettingsBuildingRequest request)
                        throws java.io.IOException,
                               org.codehaus.plexus.util.xml.pull.XmlPullParserException
        Throws:
        java.io.IOException
        org.codehaus.plexus.util.xml.pull.XmlPullParserException
      • buildSettings

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

        private java.io.File getFile​(java.lang.String pathPattern,
                                     java.lang.String basedirSysProp,
                                     java.lang.String altLocationSysProp)