After the comments above , I realized that you just wanted to have the stage command, without bringing all the Play foo.
The stage command is part of sbt-native-packager , which:
The goal of the [plugin] is to integrate Scala software created using SBT for their own packaging systems, such as deb, rpm, homebrew, msi.
One of the features of the sbt-native-packager plugin is the stage command , which
> help stage Create a local directory with all the files laid out as they would be in the final distribution.
Just add the following to project/plugins.sbt so that the plugin is available in the project (after the comment from Muki , this example uses the latest version 1.0.0-M1 with autostart function):
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.0.0-M1")
You also need to add the following to build.sbt :
enablePlugins(JavaAppPackaging)
And this! Now everything is ready.
Run stage .
> stage [info] Packaging /Users/jacek/dev/sandbox/command-build-scala/target/scala-2.10/command-build-scala_2.10-0.1-SNAPSHOT-sources.jar ... [info] Done packaging. [info] Updating {file:/Users/jacek/dev/sandbox/command-build-scala/}command-build-scala... [info] Wrote /Users/jacek/dev/sandbox/command-build-scala/target/scala-2.10/command-build-scala_2.10-0.1-SNAPSHOT.pom [info] Resolving org.fusesource.jansi
source share