Class MavenContainer
- java.lang.Object
-
- org.jboss.forge.furnace.manager.maven.MavenContainer
-
public class MavenContainer extends Object
Configures the Maven API for usage inside Furnace- Author:
- George Gastaldi
-
-
Field Summary
Fields Modifier and Type Field Description static StringALT_GLOBAL_SETTINGS_XML_LOCATIONSets an alternate location of Maven global settings.xml configurationstatic StringALT_LOCAL_REPOSITORY_LOCATIONSets an alternate location of Maven local repositorystatic StringALT_USER_SETTINGS_XML_LOCATIONSets an alternate location to Maven user settings.xml configuration
-
Constructor Summary
Constructors Constructor Description MavenContainer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.eclipse.aether.repository.ProxyconvertFromMavenProxy(org.apache.maven.settings.Proxy proxy)List<org.eclipse.aether.repository.RemoteRepository>getEnabledRepositoriesFromProfile(org.apache.maven.settings.Settings settings)Get a list of allRemoteRepositoryinstances from the Maven settings.org.eclipse.aether.RepositorySystemgetRepositorySystem()org.apache.maven.settings.SettingsgetSettings()org.eclipse.aether.DefaultRepositorySystemSessionsetupRepoSession(org.eclipse.aether.RepositorySystem repoSystem, org.apache.maven.settings.Settings settings)
-
-
-
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
-
-
Method Detail
-
getEnabledRepositoriesFromProfile
public List<org.eclipse.aether.repository.RemoteRepository> getEnabledRepositoriesFromProfile(org.apache.maven.settings.Settings settings)
Get a list of allRemoteRepositoryinstances 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
RemoteRepositoryinstances
-
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)
-
-