Creating Akka Project in OSGi

I hope to run the Akka project in the OSGi ( apache-servicemix-4.4.1-fuse-06-03) container , but I am having problems installing dependent libraries. I have already installed akka-actorit configas follows:

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

But I was not able to install scala-library(v2.9.2 required). I tried to create my own package using maven-bundle-plugin, but to no avail and long search queries.

Any help would be greatly appreciated.

+5
source share
3 answers

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

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

+1
source

, Scala IDE/Eclipse Scala 2.9.2. Akka 2.1/Karaf POC, . , lib .

+4

scala-lang-osgi, @ben1729, Bippo/Soluvas Nexus: http://nexus.bippo.co.id/nexus/content/groups/public/

http://nexus.bippo.co.id/nexus/

:

<repository>
    <id>bippo-nexus-public</id>
    <url>http://nexus.bippo.co.id/nexus/content/groups/public/</url>
</repository>

MOM Maven:

<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-library</artifactId>
  <version>2.9.2</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-compiler</artifactId>
  <version>2.9.2</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-dbc</artifactId>
  <version>2.9.2</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-swing</artifactId>
  <version>2.9.2</version>
</dependency>

, , , .

: Scala OSGi 2.10-M6 :

<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-library</artifactId>
  <version>2.10.0-M6</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-compiler</artifactId>
  <version>2.10.0-M6</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-dbc</artifactId>
  <version>2.10.0-M2</version>
</dependency>
<dependency>
  <groupId>org.scala-lang-osgi</groupId>
  <artifactId>scala-swing</artifactId>
  <version>2.10.0-M6</version>
</dependency>

It can work with Akka, but using the fixed Akka 2.1-M1 (see http://www.assembla.com/spaces/akka/tickets/2367-osgi-manifest-references-2-9-2 ).

Akka patch is available in our repository as: (in the URL of Karaf)

mvn:com.typesafe.akka/akka-actor/2.1-M1/jar/patch2

Summary of the Akka error: Akka 2.1-M1 requires 2.10-M6, it does not work with 2.9.2:

Error executing command: Error starting bundles:
nable to resolve 160.0: missing requirement [160.0] osgi.wiring.package; (&(osgi.wiring.package=scala.collection.convert)(version>=2.9.2)(!(version>=2.10.0)))      

But currently, it imports the wrong package versions:

    scala.collection.convert;version="[2.9.2,2.10)",
    scala.concurrent.util;version="[2.9.2,2.10)",
    scala.concurrent.util.duration;version="[2.9.2,2.10)",
0
source

All Articles