Unable to geneterate Scalatra template using sbt, g8
Closed this issue · 1 comments
AndersonChoi commented
Hello github users.
I have a problem about generating scalatra template.
Did I miss anything? Additional instructions/suggestions welcomed. Thanks.
-
Environment
macOS High Sierra 10.13.6
Java version "10.0.2" installed
brew info sbt -> sbt: stable 1.2.3 -
Issue Steps
$ mkdir testProject
$ cd testProject
$ sbt new scalatra/scalatra.g8
[info] Set current project to testproject (in build file:/Users/a1003855/Documents/testProject/)
[error] Not a valid command: new (similar: set)
[error] Not a valid key: new (similar: name, run, runner)
[error] new
[error] ^
AndersonChoi commented
I solve myself.
I need to check the sbt version in sbt console
.
Not brew info sbt
👎
When I checked sbt version in sbt console
$ sbt
[info] Set current project to testproject (in build file:/Users/a1003855/Documents/testProject/)
> sbtVersion
[info] 0.13.12
> exit
And then, I update sbt version in sbt configuration directory
.
$ vi /usr/local/etc/sbtopts
Before
# Sets the SBT version to use.
-sbt-version 0.13.12
After
# Sets the SBT version to use.
-sbt-version 1.2.3
Result
Successfully generate scalatra template by sbt.
$ sbt new scalatra/scalatra.g8
[info] Loading settings for project global-plugins from idea.sbt ...
[info] Loading global plugins from /Users/a1003855/.sbt/1.0/plugins
[info] Set current project to testproject (in build file:/Users/a1003855/Documents/testProject/)
[info] Set current project to testproject (in build file:/Users/a1003855/Documents/testProject/)
organization [com.example]: