playframework - Not a valid key: eclipse (similar: deliver, licenses, clean) -
i have downloaded typesafe activator , have followed following steps
activator new helloworld play-java cd helloworld activator build activator eclipse
i got error
[warn] global sbt directory versioned , located @ /users/abhi/.sbt/0.13. [warn] seeing warning because there global configuration in /users/abhi/.sbt not in /users/abhi/.sbt/0.13. [warn] global sbt directory may changed via sbt.global.base system property. [info] loading project definition /users/abhi/javaprojects/helloworld/project [warn] global sbt directory versioned , located @ /users/abhi/.sbt/0.13. [warn] seeing warning because there global configuration in /users/abhi/.sbt not in /users/abhi/.sbt/0.13. [warn] global sbt directory may changed via sbt.global.base system property. [info] set current project helloworld (in build file:/users/abhi/javaprojects/helloworld/) [error] not valid command: eclipse (similar: help, alias) [error] not valid project id: eclipse [error] expected ':' (if selecting configuration) [error] not valid key: eclipse (similar: deliver, licenses, clean) [error] eclipse [error] ^
i googled problem , found
how use sbt-eclipse create eclipse project files of project?
i can't figure out answers in these threads. did create directory
cd ~/.sbt mkdir plugins touch plugins.sbt
but still error. have "concise" solution works?
in latest play release, sbteclipse plugin not included default. thats's why activator doesn't understand "eclipse" command.
go project folder you've created , append following line project/plugins.sbt:
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
then execute following commands:
activator compile eclipse
more info on official website
Comments
Post a Comment