SBT不想输入我的项目(使用项目命令)

Seb*_*ber 0 scala sbt

我的构建很简单:

  lazy val stampleWebProject = play.Project("stample-web", appVersion, appDependencies,path = file("stample-web"))
    .dependsOn(stampleCoreProject,stampleSearchProject)
    .aggregate(stampleCoreProject,stampleSearchProject)

  lazy val stampleCoreProject = Project(id = "stample-core",base = file("stample-core"))

  lazy val stampleSearchProject = Project(id = "stample-search",base = file("stample-search"))
Run Code Online (Sandbox Code Playgroud)

所有这些项目都有一个带有依赖项的build.sbt文件,没有任何scala构建(据我所知将被忽略)

启动SBT(12.4)时,我得到以下信息:

[info] Set current project to stample-core (in build file:/home/sebastien/Bureau/Stample/)

> projects
[info] In file:/home/sebastien/Bureau/Stample/
[info]   * stample-core
[info]     stample-search
[info]     stample-web

> project stample-search
[info] Set current project to stample-search (in build file:/home/sebastien/Bureau/Stample/)

> projects
[info] In file:/home/sebastien/Bureau/Stample/
[info]     stample-core
[info]   * stample-search
[info]     stample-web

> project stample-core
[info] Set current project to stample-core (in build file:/home/sebastien/Bureau/Stample/)

> projects
[info] In file:/home/sebastien/Bureau/Stample/
[info]   * stample-core
[info]     stample-search
[info]     stample-web

> project stample-web
[info] Set current project to stample-search (in build file:/home/sebastien/Bureau/Stample/)
[stample-search] $ projects
[info] In file:/home/sebastien/Bureau/Stample/
[info]     stample-core
[info]     stample-search
[info]   * stample-web

[stample-search] $ compile
[info] Updating {file:/home/sebastien/Bureau/Stample/}stample-core...
[info] Resolving org.slf4j#slf4j-api;1.6.6 ...
[info] Done updating.
[info] Updating {file:/home/sebastien/Bureau/Stample/}stample-web...
[error] a module is not authorized to depend on itself: stample-search#stample-search_2.10;1.0
[error] (stample-web/*:update) java.lang.IllegalArgumentException: a module is not authorized to depend on itself: stample-search#stample-search_2.10;1.0
[error] Total time: 1 s, completed 26 août 2013 21:57:45
Run Code Online (Sandbox Code Playgroud)

我在这里看不懂一些东西:

  • 默认情况下,如何选择我们所在的项目。我似乎在SBT 13.0中添加了文档,但在12.4 multibuild文档中没有看到它。

  • 我怎么输入项目stample-web,它告诉我我在stample-search

  • 为什么在我的项目的sbt控制台中会显示一个特殊的显示(示例网页或图章搜索,我不太了解...)(出现在这里:[stample-search] $ compile,这与播放项目有关吗?

  • 为什么它不能编译图章搜索,因为它在我的构建中不依赖于自身(我怀疑它试图编译Web项目,但是存在命名问题或其他问题?

这是SBT错误吗?如果是这样,是否可以在Play框架中使用新的13.0版本?

Seb*_*ber 5

Eugene Yokota是正确的:我在该stample-web文件夹中有一个冲突,该文件夹在scala构建中设置了stample-web名称,但是在该文件夹中有一个错误的build.sbtname := stample-search