今天在ubuntu下用sbt搭建Project时有如下报错
Project does not exist, create new project? (y/N/s) s
java.io.FileNotFoundException:
****/project/build.properties (No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:209
at java.io.FileOutputStream.<init>(FileOutputStream.java:160)
at xsbt.boot.Initialize$.process(Create.scala:44)
at xsbt.boot.Initialize$.create(Create.scala:24)
at xsbt.boot.Launch$.parsed(Launch.scala:28)
at xsbt.boot.Launch$.configured(Launch.scala:21)
at xsbt.boot.Launch$.apply(Launch.scala:16)
at xsbt.boot.Launch$.apply(Launch.scala:13)
at xsbt.boot.Boot$.runImpl(Boot.scala:24)
at xsbt.boot.Boot$.run(Boot.scala:19)
at xsbt.boot.Boot$.main(Boot.scala:15)
at xsbt.boot.Boot.main(Boot.scala)
Error during sbt execution: java.io.FileNotFoundException:
****/project/build.properties (No such file or directory)
可是有时候就正常,google了好久,没有答案
最后原因居然是ubuntu权限问题,默认用户不能创建路径,之前是直接用
sbt
命令,如果用sudo sbt
以管理员权限运行问题就解决了,内牛满面啊