4

I'm trying to get sbt not to use a proxy when publishing an artifact. All documentation seems to point to setting the following when starting sbt:

-Dhttp.nonProxyHosts="localhost|*.xxx"

but doesn't work. This post details how to set a proxy but not how to ignore it. Also tried setting:

SBT_OPTS='http.nonProxyHosts="localhost|*.xxx"'

and

JAVA_OPTS='http.nonProxyHosts="localhost|*.xxx"'

And also escaped the pipe ("localhost\|*.xxx"). Found the issue unresolved on sbt's github page.

Any clues appreciated. Thanks.

Edited - here is the full command:

java -Dhttp.nonProxyHosts="localhost\|*.xxx"  -jar {PATH_TO_SBT_JAR}/sbt-launch.jar clean packagedArtifacts publish
Community
  • 1
  • 1
Pase
  • 41
  • 2

0 Answers0