public class MavenContainer extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALT_GLOBAL_SETTINGS_XML_LOCATION
Sets an alternate location of Maven global settings.xml configuration
|
static String |
ALT_LOCAL_REPOSITORY_LOCATION
Sets an alternate location of Maven local repository
|
static String |
ALT_USER_SETTINGS_XML_LOCATION
Sets an alternate location to Maven user settings.xml configuration
|
| Constructor and Description |
|---|
MavenContainer() |
| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.aether.repository.Proxy |
convertFromMavenProxy(org.apache.maven.settings.Proxy proxy) |
List<org.eclipse.aether.repository.RemoteRepository> |
getEnabledRepositoriesFromProfile(org.apache.maven.settings.Settings settings)
Get a list of all
RemoteRepository instances from the Maven settings. |
org.eclipse.aether.RepositorySystem |
getRepositorySystem() |
org.apache.maven.settings.Settings |
getSettings() |
org.eclipse.aether.DefaultRepositorySystemSession |
setupRepoSession(org.eclipse.aether.RepositorySystem repoSystem,
org.apache.maven.settings.Settings settings) |
public static final String ALT_USER_SETTINGS_XML_LOCATION
public static final String ALT_GLOBAL_SETTINGS_XML_LOCATION
public static final String ALT_LOCAL_REPOSITORY_LOCATION
public List<org.eclipse.aether.repository.RemoteRepository> getEnabledRepositoriesFromProfile(org.apache.maven.settings.Settings settings)
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.settings - The Maven settings instance.RemoteRepository instancespublic org.apache.maven.settings.Settings getSettings()
public org.eclipse.aether.RepositorySystem getRepositorySystem()
public static org.eclipse.aether.repository.Proxy convertFromMavenProxy(org.apache.maven.settings.Proxy proxy)
public org.eclipse.aether.DefaultRepositorySystemSession setupRepoSession(org.eclipse.aether.RepositorySystem repoSystem,
org.apache.maven.settings.Settings settings)
Copyright © 2014 JBoss by Red Hat. All rights reserved.