Why is sbt current project name “default” in 0.10?

匆匆过客 提交于 2020-01-21 04:33:14

问题


I'm using sbt 0.10 to build a Scala project using just a build.sbt file instead of a full configuration.

Every time I start sbt it gives me the messages as follows:

[info] Set current project to default-ee699e (in build file:/Users/.../project/plugins/)
[info] Set current project to default-8febe7 (in build file:/Users/.../)

I did set the name and mainClass settings in the build.sbt file, so I don't know what I need to set to get the project names default-XXXX go away.

EDIT: the answer given below is correct in that this is cosmetic. If you switch to a full configuration of sbt, then it uses that project's name as opposed to default-XXXX however.


回答1:


The message can be a bit misleading, it's not saying that you must "set the curent project", it's telling you what it's doing.

It sets the current project to the plugins folder, does it's stuff (compile, etc.), then sets the current project to your actual build folder and does it's thing once again.

You don't need to set anything else.



来源:https://stackoverflow.com/questions/6935028/why-is-sbt-current-project-name-default-in-0-10

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