Create a new play scala project shows error in eclipse -
i new play framework(scala),i created new project using activator new sample play-scala command, sample project name.then ran project using activator run command .when ran activator eclipse command showed
[error] not valid command: eclipse (similar: help, alias) [error] not valid project id: eclipse [error] expected ':' [error] not valid key: eclipse (similar: deliver, licenses, clean) [error] eclipse so internet suggestions added
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0")
this line sample project's plugins.sbt file.this fixed not valid command error when imported project eclipse showed object index not member of package views.html error please me fix error
plugins.sbt
// play plugin addsbtplugin("com.typesafe.play" % "sbt-plugin" % "2.4.0") // web plugins addsbtplugin("com.typesafe.sbt" % "sbt-coffeescript" % "1.0.0") addsbtplugin("com.typesafe.sbt" % "sbt-less" % "1.0.6") addsbtplugin("com.typesafe.sbt" % "sbt-jshint" % "1.0.3") addsbtplugin("com.typesafe.sbt" % "sbt-rjs" % "1.0.7") addsbtplugin("com.typesafe.sbt" % "sbt-digest" % "1.1.0") addsbtplugin("com.typesafe.sbt" % "sbt-mocha" % "1.1.0") addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "2.5.0") 
create new file plugins.sbt inside project folder.
sample directory path
c:\workspace\playframework\activator-1.3.6-minimal\play-java-intro\project\ add below content file
addsbtplugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0") then run eclipse command
activator eclipse this worked me without issues.
Comments
Post a Comment