0

I am facing an issue with sbt here https://github.com/dmlc/xgboost/issues/1858

strangely not even the maven variables are resolved

com.typesafe.akka#akka-actor_${scala.binary.version};2.3.11: not found

maven outputs these warnings during the build:

Expected all dependencies to require Scala version: 2.11.8
[WARNING]  com.typesafe.akka:akka-actor_2.11:2.3.11 requires scala version: 2.11.5
[WARNING] Multiple versions of scala libraries detected!

On a mac hard coding the scala version of the akka dependency seems to be a workaround. For windows or ubuntu this workaround does not work.

edit

<scala.binary.version>2.11</scala.binary.version> in https://github.com/dmlc/xgboost/blob/master/jvm-packages/pom.xml

and

<dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-actor_${scala.binary.version}</artifactId>
            <version>2.3.11</version>
            <scope>compile</scope>
</dependency>

in https://github.com/dmlc/xgboost/blob/e7fbc8591fa7277ee4c474b7371c48c11b34cbde/jvm-packages/xgboost4j/pom.xml

which I hard coded to

<dependency>
            <groupId>com.typesafe.akka</groupId>
            <artifactId>akka-actor_2.11</artifactId>
            <version>2.3.11</version>
            <scope>compile</scope>
</dependency>
4

1 回答 1

0

问题是 xgboost 正在使用 pom.xml 中的属性,这些属性在每个配置文件的非默认部分中定义。SBT 似乎无法处理在这里查看我的拉取请求https://github.com/dmlc/xgboost/issues/1858

于 2016-12-20T15:16:02.280 回答