sbt maven 兼容性问题
sbt maven compatibility issues
我在这里遇到 sbt 问题 https://github.com/dmlc/xgboost/issues/1858
奇怪的是连 maven 变量都没有解析
com.typesafe.akka#akka-actor_${scala.binary.version};2.3.11: not found
maven 在构建期间输出这些警告:
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!
在 mac 上硬编码 akka 依赖项的 scala 版本似乎是一种解决方法。对于 windows 或 ubuntu,此解决方法不起作用。
编辑
<scala.binary.version>2.11</scala.binary.version>
在 https://github.com/dmlc/xgboost/blob/master/jvm-packages/pom.xml
和
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_${scala.binary.version}</artifactId>
<version>2.3.11</version>
<scope>compile</scope>
</dependency>
我硬编码为
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_2.11</artifactId>
<version>2.3.11</version>
<scope>compile</scope>
</dependency>
问题是 xgboost 正在使用 pom.xml 中的属性,这些属性在每个配置文件部分的非默认值中定义。 SBT 似乎无法处理
在此处查看我的拉取请求 https://github.com/dmlc/xgboost/issues/1858
我在这里遇到 sbt 问题 https://github.com/dmlc/xgboost/issues/1858
奇怪的是连 maven 变量都没有解析
com.typesafe.akka#akka-actor_${scala.binary.version};2.3.11: not found
maven 在构建期间输出这些警告:
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!
在 mac 上硬编码 akka 依赖项的 scala 版本似乎是一种解决方法。对于 windows 或 ubuntu,此解决方法不起作用。
编辑
<scala.binary.version>2.11</scala.binary.version>
在 https://github.com/dmlc/xgboost/blob/master/jvm-packages/pom.xml
和
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_${scala.binary.version}</artifactId>
<version>2.3.11</version>
<scope>compile</scope>
</dependency>
我硬编码为
<dependency>
<groupId>com.typesafe.akka</groupId>
<artifactId>akka-actor_2.11</artifactId>
<version>2.3.11</version>
<scope>compile</scope>
</dependency>
问题是 xgboost 正在使用 pom.xml 中的属性,这些属性在每个配置文件部分的非默认值中定义。 SBT 似乎无法处理 在此处查看我的拉取请求 https://github.com/dmlc/xgboost/issues/1858