Akka actors for java, maven dependency issue

2019-08-01 08:35发布

问题:

In this official doc they use 2.2-SNAPSHOT version.

http://doc.akka.io/docs/akka/snapshot/intro/getting-started.html

If try to resolve it - it does not work.

If try to add typesafe repo:

<repositories>
    <repository>
        <id>java.net</id>
        <url>http://repo.typesafe.com/typesafe/releases/</url>
    </repository>
</repositories>

<dependencies>
    <dependency>
        <groupId>com.typesafe.akka</groupId>
        <artifactId>akka-actor_2.10</artifactId>
        <version>2.2-SNAPSHOT</version>
    </dependency>
</dependencies>

It does not work neither. Edit: Even if I use snapshot repo in "< repository >"

Is there some repo I can use to make official sample working?

If I use previous version, then that example does not resolve some methods (like this: Props.create). So I need last one then.

回答1:

Can't you use the M3?

<dependency>
    <groupId>com.typesafe.akka</groupId>
    <artifactId>akka-actor_2.10</artifactId>
    <version>2.2-M3</version>
</dependency>

If so, please use the above. It's available on the standard Maven repo.



回答2:

Normally people don't publish snapshots to the releases repository (there's almost always a snapshots repository), in Akka's case, it's: repo.akka.io/snapshots/

And I definitely recommend to choose one of the timestamped ones and not the snapshot.



标签: java akka