Skip to content

Instantly share code, notes, and snippets.

View IlyaFinkelshteyn's full-sized avatar

Ilya Finkelshteyn IlyaFinkelshteyn

  • Azure App Service
  • Seattle WA
View GitHub Profile
@IlyaFinkelshteyn
IlyaFinkelshteyn / set-maven-proxy.ps1
Last active July 25, 2016 19:39 — forked from FeodorFitsner/set-maven-proxy.ps1
Setup Maven builds to use AppVeyor HTTP proxy
if(-not $env:APPVEYOR_HTTP_PROXY_IP) { return }
$mavenConfig = '<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>' + $env:APPVEYOR_HTTP_PROXY_IP + '</host>