Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating Akka project in OSGi

Tags:

scala

akka

osgi

I am hoping to run an Akka project within an OSGi container (apache-servicemix-4.4.1-fuse-06-03) but am having a little trouble installing the dependent libraries. I have already installed akka-actor and config as follows:

  • osgi:install -s mvn:com.typesafe.akka/akka-actor/2.1-SNAPSHOT
  • osgi:install -s mvn:com.typesafe/config/0.4.1

But am unable to install scala-library (v2.9.2 required). I have tried creating my own bundle using the maven-bundle-plugin but to no avail and have googled round for ages.

Any help would be greatly appreciated.

like image 518
bm1729 Avatar asked Jul 23 '12 08:07

bm1729


2 Answers

If you're looking for a quick workaround, use the bundle from your Scala IDE/Eclipse for Scala 2.9.2. I did that for my Akka 2.1/Karaf POC and it worked fine. If you don't have one, download it from my lib folder here.

like image 174
jamie Avatar answered Sep 30 '22 11:09

jamie


This was kindly uploaded after posting on the scala-users group:

https://github.com/guofengzh/scala-lang-osgi

like image 40
bm1729 Avatar answered Sep 30 '22 12:09

bm1729