Package org.apache.maven.settings
Class SettingsUtils
java.lang.Object
org.apache.maven.settings.SettingsUtils
Several convenience methods to handle settings
- Author:
- Vincent Siveton
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.maven.model.Profile
convertFromSettingsProfile
(org.apache.maven.settings.Profile settingsProfile) static org.apache.maven.settings.Profile
convertToSettingsProfile
(org.apache.maven.model.Profile modelProfile) static org.apache.maven.settings.Settings
copySettings
(org.apache.maven.settings.Settings settings) static void
merge
(org.apache.maven.settings.Settings dominant, org.apache.maven.settings.Settings recessive, String recessiveSourceLevel)
-
Method Details
-
merge
public static void merge(org.apache.maven.settings.Settings dominant, org.apache.maven.settings.Settings recessive, String recessiveSourceLevel) - Parameters:
dominant
-recessive
-recessiveSourceLevel
-
-
convertToSettingsProfile
public static org.apache.maven.settings.Profile convertToSettingsProfile(org.apache.maven.model.Profile modelProfile) - Parameters:
modelProfile
-- Returns:
- a profile
-
convertFromSettingsProfile
public static org.apache.maven.model.Profile convertFromSettingsProfile(org.apache.maven.settings.Profile settingsProfile) - Parameters:
settingsProfile
-- Returns:
- a profile
-
copySettings
public static org.apache.maven.settings.Settings copySettings(org.apache.maven.settings.Settings settings) - Parameters:
settings
- could be null- Returns:
- a new instance of settings or null if settings was null.
-