piyushghai commented on issue #13971: clojure: cross-platform unique library dependency URL: https://github.com/apache/incubator-mxnet/issues/13971#issuecomment-460381682 Theoretically, a single global artefact would in fact take a lot more disk space as well, which might or might not be an issue given the standards of modern day computing. But, @leontalbot just @lanking520 mentioned, the issue is not about the space for the artefact, rather the platform specific dependencies that we need to bundle into the jars. There are technical limitations to doing so. In Scala, when we are not sure whether our end users will be using Ubuntu CPU/GPU or MacOS, we add these profiles in pom.xml and let Maven pick it up for us. eg snippet taken from here : https://github.com/apache/incubator-mxnet/blob/master/scala-package/mxnet-demo/java-demo/pom.xml ``` <profile> <id>osx-x86_64</id> <activation> <os> <family>mac</family> </os> </activation> <properties> <mxnet.profile>osx-x86_64-cpu</mxnet.profile> </properties> </profile> <profile> <id>linux-x86_64</id> <activation> <os> <family>unix</family> <name>Linux</name> </os> </activation> <properties> <mxnet.profile>linux-x86_64-cpu</mxnet.profile> </properties> </profile> ``` Hope that answers your question :) @lanking520 I suggest this issue to be closed. @leontalbot Please feel free to re-open if closed in error.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services