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 TypeMethodDescriptionvoid
addActiveProfile
(String profileName) void
addProfile
(org.infinispan.commons.maven.MavenSettings.Profile profile) void
addProxy
(org.infinispan.commons.maven.MavenSettings.Proxy proxy) List<org.infinispan.commons.maven.MavenSettings.Proxy>
org.infinispan.commons.maven.MavenSettings.Proxy
getProxyFor
(URL url) static MavenSettings
init()
static MavenSettings
openConnection
(URL url) Opens a connection with appropriate proxy and credentials, if required.void
setLocalRepository
(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.
-