Akka actors for java, maven dependency issue

2019-08-01 08:22发布

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.

标签: java akka
2条回答
霸刀☆藐视天下
2楼-- · 2019-08-01 09:06

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.

查看更多
戒情不戒烟
3楼-- · 2019-08-01 09:09

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.

查看更多
登录 后发表回答