Package org.apache.maven.settings.building

Examples of org.apache.maven.settings.building.DefaultSettingsBuilderFactory


   * matchNonProxy tests with multiple nonProxyHosts
   */
  @Test
  public void matchNonProxyWithMultiple_nonPorxyHosts() throws Exception
  {
    SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
    assertNotNull( builder );

    DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
    request.setSystemProperties( System.getProperties() );
    FileSettingsSource fileSource = new FileSettingsSource( new File("src/test/resources/settings/proxy/nonproxy-github_and_api.xml").getAbsoluteFile() );
View Full Code Here


   * matchNonProxy tests with wildcard nonProxyHosts
   */
  @Test
  public void matchNonProxyWithWildcard_nonPorxyHosts() throws Exception
  {
    SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
    assertNotNull( builder );

    DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
    request.setSystemProperties( System.getProperties() );
    FileSettingsSource fileSource = new FileSettingsSource( new File("src/test/resources/settings/proxy/nonproxy-github_wildcard.xml").getAbsoluteFile() );
View Full Code Here

   * getProxy tests with single nonProxyHosts
   */
  @Test
  public void getProxyWithSingle_nonProxyHosts() throws Exception
  {
    SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
    assertNotNull( builder );

    DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
    request.setSystemProperties( System.getProperties() );
    FileSettingsSource fileSource = new FileSettingsSource( new File("src/test/resources/settings/proxy/nonproxy-github.xml").getAbsoluteFile() );
View Full Code Here

   * getProxy tests with nonProxyHosts, which have same id
   */
  @Test
  public void getProxyIntraWithSameId() throws Exception
  {
    SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
    assertNotNull( builder );

    DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
    request.setSystemProperties( System.getProperties() );
    FileSettingsSource fileSource = new FileSettingsSource( new File("src/test/resources/settings/proxy/nonproxy-intra_github.xml").getAbsoluteFile() );
View Full Code Here

   * getProxy tests with nonProxyHosts, which doesn't have same id
   */
  @Test
  public void getProxyIntraNoSameId() throws Exception
  {
    SettingsBuilder builder = new DefaultSettingsBuilderFactory().newInstance();
    assertNotNull( builder );

    DefaultSettingsBuildingRequest request = new DefaultSettingsBuildingRequest();
    request.setSystemProperties( System.getProperties() );
    FileSettingsSource fileSource = new FileSettingsSource( new File("src/test/resources/settings/proxy/nonproxy-intra_github-no_same_id.xml").getAbsoluteFile() );
View Full Code Here

   public Settings getSettings()
   {
      try
      {
         SettingsBuilder settingsBuilder = new DefaultSettingsBuilderFactory().newInstance();
         SettingsBuildingRequest settingsRequest = new DefaultSettingsBuildingRequest();
         settingsRequest
                  .setUserSettingsFile(new File(OSUtils.getUserHomeDir().getAbsolutePath() + "/.m2/settings.xml"));

         if (M2_HOME != null)
View Full Code Here

TOP

Related Classes of org.apache.maven.settings.building.DefaultSettingsBuilderFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.