Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to mavenize a Scala / Akka / Play project?

I have a small project which uses Scala, Akka and Play combined. The way I set it up is the old-school way: download everything and link. I would like instead to mavenize the whole thing. Could you recommend me a clear, specific guide to do this? Thanks in advance.

like image 281
ticofab Avatar asked Jun 27 '13 19:06

ticofab


People also ask

How do I terminate Akka actor?

In Akka, you can stop Actors by invoking the stop() method of either ActorContext or ActorSystem class. ActorContext is used to stop child actor and ActorSystem is used to stop top level Actor. The actual termination of the actor is performed asynchronously.

How can I send a message to Akka?

1) Akka Actor tell() Method It works on "fire-forget" approach. You can also use ! (bang) exclamation mark to send message. This is the preferred way of sending messages.

What happens when an actor fails in Akka?

You are viewing the documentation for the new actor APIs, to view the Akka Classic documentation, see Classic Fault Tolerance. When an actor throws an unexpected exception, a failure, while processing a message or during initialization, the actor will by default be stopped.


1 Answers

Don't use Maven - use SBT - it's the build tool of choice.

Note maven is now squarely in the thoughtworks radar Hold section meaning nobody should be building new projects on it if you trust Fowler's advice: http://www.thoughtworks.com/radar

Play comes with sbt under the hood already so you shouldn't have to look to far from where you are now: http://www.playframework.com/documentation/2.0/Build

like image 91
JasonG Avatar answered Oct 15 '22 20:10

JasonG