Class SettingsUtils

java.lang.Object
org.apache.maven.settings.SettingsUtils

public final class SettingsUtils extends Object
Several convenience methods to handle settings
Author:
Vincent Siveton
  • Method Details

    • merge

      public static org.apache.maven.api.settings.Settings merge(org.apache.maven.api.settings.Settings dominant, org.apache.maven.api.settings.Settings recessive, String recessiveSourceLevel)
      Parameters:
      dominant -
      recessive -
      recessiveSourceLevel -
    • convertToSettingsProfile

      public static org.apache.maven.api.settings.Profile convertToSettingsProfile(Profile modelProfile)
      Parameters:
      modelProfile -
      Returns:
      a profile
    • convertFromSettingsProfile

      public static Profile convertFromSettingsProfile(org.apache.maven.api.settings.Profile settingsProfile)
      Parameters:
      settingsProfile -
      Returns:
      a profile
    • copySettings

      public static Settings copySettings(Settings settings)
      Parameters:
      settings - could be null
      Returns:
      a new instance of settings or null if settings was null.