Closed vkorenev closed 5 years ago
Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: Installation
Probably related to #13626.
@lanking520 @zachgk
@mxnet-label-bot add [Scala, Build]
I looked into this a bit. There are other non-expanded properties such as ${cxx}
and ${project.parent.basedir}
so I believe SBT should generally handle these. I think ${libtype}
is different because it uses an activation https://github.com/apache/incubator-mxnet/blob/master/scala-package/pom.xml#L124. So, it will automatically set the appropriate libtype based on the detected operating system and maybe SBT is not handling this. Do you know if you can manually set either the os profile or the properties associated with that profile when pulling in the dependency?
This relates to "INTERNAL" packages only, which are not supposed to be used in other projects (#15634). The package produced by mvn deploy -Drepo_url=file://$HOME/.m2/repository
is good. So the actual problem is that mvn install
does not deploy usable packages to the local repo as one might expect, but there is another command which can do this.
Description
When building Scala from source,
mvn install
produces packages with non-expanded${libtype}
in their pom files. This causes an error when trying to use them from sbt build.Environment info (Required)
Java version:
Maven version:
Build info (Required if built from source)
MXNet commit hash:
cc861f0a3fecea8fb94c9687396e27966e5ddcde
Build command:
mvn install
(Completes successfully)Error Message:
Minimum reproducible example
build.sbt
:Steps to reproduce
sbt compile
Other info
Contents of
~/.m2/repository/org/apache/mxnet/mxnet-full_2.11/INTERNAL/mxnet-full_2.11-INTERNAL.pom
:Contents of
~/.m2/repository/org/apache/mxnet/libmxnet-scala/INTERNAL/libmxnet-scala-INTERNAL.pom
:Note that
${libtype}
has not been expanded in these files.