The solve was suggested here: sbt/sbt#2817
- in ~/.sbt/repositories put:
[repositories]
local
maven-local
my-ivy-proxy-releases: http://mydomain.com/artifactory/sbt/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
my-maven-proxy-releases: http://mydomain.com/artifactory/sbt/
- Create a .credentials file, ~/.sbt/.credentials:
realm=Artifactory Realm
host=mydomain.com
user=<your-username>
password=<your-password>
- Before running sbt export SBT_CREDENTIALS varialble
export SBT_CREDENTIALS=${HOME}/.sbt/.credentials