aboutsummaryrefslogtreecommitdiff
path: root/mllib/pom.xml
diff options
context:
space:
mode:
authorXiangrui Meng <meng@databricks.com>2014-07-10 21:57:54 -0700
committerReynold Xin <rxin@apache.org>2014-07-10 21:57:54 -0700
commit2f59ce7dbe2fe2ff31e2629bb34572d39098d638 (patch)
tree4de6873edae6d614c5f4ebbad95860ff258f6c1d /mllib/pom.xml
parent10b59ba230cb426f2a5d43cd0a4964a556e24c3f (diff)
downloadspark-2f59ce7dbe2fe2ff31e2629bb34572d39098d638.tar.gz
spark-2f59ce7dbe2fe2ff31e2629bb34572d39098d638.tar.bz2
spark-2f59ce7dbe2fe2ff31e2629bb34572d39098d638.zip
[SPARK-2358][MLLIB] Add an option to include native BLAS/LAPACK loader in the build
It would be easy for users to include the netlib-java jniloader in the spark jar, which is LGPL-licensed. We can follow the same approach as ganglia support in Spark, which could be enabled by turning on "-Pganglia-lgpl" at build time. We can use "-Pnetlib-lgpl" flag for this. Author: Xiangrui Meng <meng@databricks.com> Closes #1295 from mengxr/netlib-lgpl and squashes the following commits: aebf001 [Xiangrui Meng] add a profile to optionally include native BLAS/LAPACK loader in mllib
Diffstat (limited to 'mllib/pom.xml')
-rw-r--r--mllib/pom.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/mllib/pom.xml b/mllib/pom.xml
index 87afd7ecf2..92b07e2357 100644
--- a/mllib/pom.xml
+++ b/mllib/pom.xml
@@ -78,6 +78,19 @@
<scope>test</scope>
</dependency>
</dependencies>
+ <profiles>
+ <profile>
+ <id>netlib-lgpl</id>
+ <dependencies>
+ <dependency>
+ <groupId>com.github.fommil.netlib</groupId>
+ <artifactId>all</artifactId>
+ <version>1.1.2</version>
+ <type>pom</type>
+ </dependency>
+ </dependencies>
+ </profile>
+ </profiles>
<build>
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>