Class SettingsAdapter

All Implemented Interfaces:
Serializable, Cloneable

class SettingsAdapter extends Settings
Adapt a MavenExecutionRequest to a Settings object for use in the Maven core. We want to make sure that what is ask for in the execution request overrides what is in the settings. The CLI feeds into an execution request so if a particular value is present in the execution request then we will take that over the value coming from the user settings.
  • Field Details

  • Constructor Details

  • Method Details

    • getLocalRepository

      public String getLocalRepository()
      Description copied from class: Settings
      Get the local repository.
      Default value is: ${user.home}/.m2/repository
      Overrides:
      getLocalRepository in class Settings
      Returns:
      String
    • isInteractiveMode

      public boolean isInteractiveMode()
      Description copied from class: Settings
      Get whether Maven should attempt to interact with the user for input.
      Overrides:
      isInteractiveMode in class Settings
      Returns:
      boolean
    • isOffline

      public boolean isOffline()
      Description copied from class: Settings
      Get indicate whether maven should operate in offline mode full-time.
      Overrides:
      isOffline in class Settings
      Returns:
      boolean
    • getProxies

      public List<Proxy> getProxies()
      Description copied from class: Settings
      Method getProxies.
      Overrides:
      getProxies in class Settings
      Returns:
      List
    • getServers

      public List<Server> getServers()
      Description copied from class: Settings
      Method getServers.
      Overrides:
      getServers in class Settings
      Returns:
      List
    • getMirrors

      public List<Mirror> getMirrors()
      Description copied from class: Settings
      Method getMirrors.
      Overrides:
      getMirrors in class Settings
      Returns:
      List
    • getProfiles

      public List<Profile> getProfiles()
      Description copied from class: Settings
      Method getProfiles.
      Overrides:
      getProfiles in class Settings
      Returns:
      List
    • getActiveProfiles

      public List<String> getActiveProfiles()
      Description copied from class: Settings
      Method getActiveProfiles.
      Overrides:
      getActiveProfiles in class Settings
      Returns:
      List
    • getPluginGroups

      public List<String> getPluginGroups()
      Description copied from class: Settings
      Method getPluginGroups.
      Overrides:
      getPluginGroups in class Settings
      Returns:
      List