在Mac OS X 10.9.4上使用IntelliJ IDEA 13.1.4和Scala插件0.41.2创建sbt项目时,发生以下错误:
下载模块描述符时出现[警告]问题:http://repo1.maven.org/maven2/org/scalatest/scalatest_2.11/2.2.1/scalatest_2.11-2.2.1.pom:/ Users / ... /.ivy2/cache/org.scalatest/scalatest_2.11/ivy-2.2.1.xml.original.part(Permission denied)(384ms)
这会阻止刷新项目依赖项 .
可能是什么问题和解决方案?
1 回答
我认为你曾经使用
sudo
运行sbt / activator / IDEA,这搞乱了本地回购的权限,使得root
成为所有者 .检查
~/.sbt
和~/.ivy2
的权限,该权限应允许当前用户读取和写入目录文件 .