Package org.infinispan.commons.maven
Class MavenSettings
java.lang.Object
org.infinispan.commons.maven.MavenSettings
- Author:
- Tomaz Cerar (c) 2014 Red Hat Inc.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveProfile(String profileName) voidaddProfile(org.infinispan.commons.maven.MavenSettings.Profile profile) voidaddProxy(org.infinispan.commons.maven.MavenSettings.Proxy proxy) List<org.infinispan.commons.maven.MavenSettings.Proxy>org.infinispan.commons.maven.MavenSettings.ProxygetProxyFor(URL url) static MavenSettingsinit()static MavenSettingsopenConnection(URL url) Opens a connection with appropriate proxy and credentials, if required.voidsetLocalRepository(Path localRepository)
-
Method Details
-
init
- Throws:
IOException
-
init
- Throws:
IOException
-
setLocalRepository
-
getLocalRepository
-
getRemoteRepositories
-
addProfile
public void addProfile(org.infinispan.commons.maven.MavenSettings.Profile profile) -
addActiveProfile
-
addProxy
public void addProxy(org.infinispan.commons.maven.MavenSettings.Proxy proxy) -
getProxies
-
getProxyFor
-
openConnection
Opens a connection with appropriate proxy and credentials, if required.- Parameters:
url- The URL to open.- Returns:
- The opened connection.
- Throws:
IOException- If an error occurs establishing the connection.
-