Class MavenSettings

java.lang.Object
org.infinispan.commons.maven.MavenSettings

public final class MavenSettings extends Object
Author:
Tomaz Cerar (c) 2014 Red Hat Inc.
  • Method Details

    • init

      public static MavenSettings init() throws IOException
      Throws:
      IOException
    • init

      public static MavenSettings init(Path settingsPath) throws IOException
      Throws:
      IOException
    • setLocalRepository

      public void setLocalRepository(Path localRepository)
    • getLocalRepository

      public Path getLocalRepository()
    • getRemoteRepositories

      public List<String> getRemoteRepositories()
    • addProfile

      public void addProfile(org.infinispan.commons.maven.MavenSettings.Profile profile)
    • addActiveProfile

      public void addActiveProfile(String profileName)
    • addProxy

      public void addProxy(org.infinispan.commons.maven.MavenSettings.Proxy proxy)
    • getProxies

      public List<org.infinispan.commons.maven.MavenSettings.Proxy> getProxies()
    • getProxyFor

      public org.infinispan.commons.maven.MavenSettings.Proxy getProxyFor(URL url)
    • openConnection

      public URLConnection openConnection(URL url) throws IOException
      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.