Java的Akka actors,Maven依赖问题 [英] Akka actors for java, maven dependency issue
问题描述
在此官方文档中,他们使用2.2-SNAPSHOT版本。
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. Even if I use snapshot repo in "< repository >"
是否存在一些存储库可以用来制作正式样品吗?
Is there some repo I can use to make official sample working?
如果我使用以前的版本,则该示例无法解决某些方法(例如: Props.create
) 。所以我需要最后一个。
If I use previous version, then that example does not resolve some methods (like this: Props.create
). So I need last one then.
推荐答案
您不能使用M3吗?
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_2.10</artifactId>
<version>2.2-M3</version>
</dependency>
如果是,请使用上面的命令。它可以在标准Maven仓库中使用。
If so, please use the above. It's available on the standard Maven repo.
这篇关于Java的Akka actors,Maven依赖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!