I am trying to get a simple Akka program building with Eclipse and Scala. I used g8 to create the sbt project with Akka(g8 typesafehub/akka-scala-sbt) and then sbteclispe to create the Eclipse project. When I import the project into Eclipse I’m given errors saying I am missing Akka. Is there any way that I can build an Akka project with Eclipse?
Share
The simplest thing is to add the
sbteclipseplugin to your Sbt build. It automatically generates project files for Eclipse, so that you can import your project with all its settings, classpath included. To do so, add the following underproject/plugins.sbt(not in the root of your project, but under theprojectsubdirectory):then, start
sbtand at the prompt writeeclipse. You should see:Then go to Eclipse and Import your project.