]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1098] upgrade to wagon 1.0-beta-5 and remove workaround that was needed previously
authorBrett Porter <brett@apache.org>
Wed, 25 Feb 2009 00:11:47 +0000 (00:11 +0000)
committerBrett Porter <brett@apache.org>
Wed, 25 Feb 2009 00:11:47 +0000 (00:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@747621 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-proxy/src/main/java/org/apache/maven/archiva/proxy/DefaultRepositoryProxyConnectors.java
pom.xml

index a6324d383aacb3ebaeac07e322d44fdd1bf59d47..0fdf4814f89937d28c9f28c1114bfe85f8220c5a 100644 (file)
@@ -497,11 +497,6 @@ public class DefaultRepositoryProxyConnectors
             return null;
         }
 
-        // MRM-631 - the lightweight wagon does not reset these - remove if we switch to httpclient based wagon
-        String previousHttpProxyHost = System.getProperty( "http.proxyHost" );
-        String previousHttpProxyPort = System.getProperty( "http.proxyPort" );
-        String previousProxyExclusions = System.getProperty( "http.nonProxyHosts" );
-
         File tmpMd5 = null;
         File tmpSha1 = null;
         File tmpResource = null;
@@ -550,32 +545,6 @@ public class DefaultRepositoryProxyConnectors
                 try
                 {
                     wagon.disconnect();
-
-                    // MRM-631 - the lightweight wagon does not reset these - remove if we switch to httpclient based wagon
-                    if ( previousHttpProxyHost != null )
-                    {
-                        System.setProperty( "http.proxyHost", previousHttpProxyHost );
-                    }
-                    else
-                    {
-                        System.getProperties().remove( "http.proxyHost" );
-                    }
-                    if ( previousHttpProxyPort != null )
-                    {
-                        System.setProperty( "http.proxyPort", previousHttpProxyPort );
-                    }
-                    else
-                    {
-                        System.getProperties().remove( "http.proxyPort" );
-                    }
-                    if ( previousProxyExclusions != null )
-                    {
-                        System.setProperty( "http.nonProxyHosts", previousProxyExclusions );
-                    }
-                    else
-                    {
-                        System.getProperties().remove( "http.nonProxyHosts" );
-                    }
                 }
                 catch ( ConnectionException e )
                 {
diff --git a/pom.xml b/pom.xml
index 856d1b1971b5d6f6b991265768b2f1d22f445128..17d742fa502f1980a60bdc5ff1d03fe94075a599 100644 (file)
--- a/pom.xml
+++ b/pom.xml
   </dependencyManagement>
   <properties>
     <maven.version>2.0.8</maven.version>
-    <wagon.version>1.0-beta-4</wagon.version>
+    <wagon.version>1.0-beta-5</wagon.version>
     <redback.version>1.2-SNAPSHOT</redback.version>
     <jetty.version>6.1.6</jetty.version>
     <binder.version>0.9</binder.version>