private Proxy getMavenProxy ( ) { if ( mavenSettings != null ) { final List < Proxy > proxies = mavenSettings . getProxies ( ) ; if ( proxies != null && ! proxies . isEmpty ( ) ) { if ( mavenSettingsProxyId != null ) { for ( Proxy proxy : proxies ) { if ( mavenSettingsProxyId . equalsIgnoreCase ( proxy . getId ( ) ) ) { return proxy ; } } } else { for ( Proxy aProxy : proxies ) { if ( aProxy . isActive ( ) ) { return aProxy ; } } } } } return null ; }
Returns the maven proxy .