Intellij and sbt 0.13.5 “URI has an authority component”

谁都会走 提交于 2019-11-29 08:13:05

Activator somehow creates malformed repository URIs for Windows in C:/Users/User_Name/.sbt/repositories

Changing the activator repos to the below values (please note the three slashes after file:) fixed the issue for me.

[repositories]
  local
  activator-launcher-local: file:///${activator.local.repository-${activator.home-${user.home}/.activator}/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  activator-local: file:///${activator.local.repository-//D:/.../activator-1.3.4/repository}, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
  maven-central
  ...

However every time you start activator UI or create a new project via activator later on the file is changed back again. So this is just a temporary workaround until it is fixed in activator.

You can subscribe to https://github.com/typesafehub/activator/issues/1033 to be notified when the bug is fixed.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!