Class MavenContainer


  • public class MavenContainer
    extends Object
    Configures the Maven API for usage inside Furnace
    Author:
    George Gastaldi
    • Field Detail

      • ALT_USER_SETTINGS_XML_LOCATION

        public static final String ALT_USER_SETTINGS_XML_LOCATION
        Sets an alternate location to Maven user settings.xml configuration
        See Also:
        Constant Field Values
      • ALT_GLOBAL_SETTINGS_XML_LOCATION

        public static final String ALT_GLOBAL_SETTINGS_XML_LOCATION
        Sets an alternate location of Maven global settings.xml configuration
        See Also:
        Constant Field Values
      • ALT_LOCAL_REPOSITORY_LOCATION

        public static final String ALT_LOCAL_REPOSITORY_LOCATION
        Sets an alternate location of Maven local repository
        See Also:
        Constant Field Values
    • Constructor Detail

      • MavenContainer

        public MavenContainer()
    • Method Detail

      • getEnabledRepositoriesFromProfile

        public List<org.eclipse.aether.repository.RemoteRepository> getEnabledRepositoriesFromProfile​(org.apache.maven.settings.Settings settings)
        Get a list of all RemoteRepository instances from the Maven settings. The returned list can be used as is in a CollectRequest or a VersionRangeRequest, since all repositories and mirrors have been enriched with the required authentication info.
        Parameters:
        settings - The Maven settings instance.
        Returns:
        A list of RemoteRepository instances
      • getSettings

        public org.apache.maven.settings.Settings getSettings()
      • getRepositorySystem

        public org.eclipse.aether.RepositorySystem getRepositorySystem()
      • convertFromMavenProxy

        public static org.eclipse.aether.repository.Proxy convertFromMavenProxy​(org.apache.maven.settings.Proxy proxy)
      • setupRepoSession

        public org.eclipse.aether.DefaultRepositorySystemSession setupRepoSession​(org.eclipse.aether.RepositorySystem repoSystem,
                                                                                  org.apache.maven.settings.Settings settings)