Skip to content

Commit 2f59ce7

Browse files
mengxrrxin
authored andcommitted
[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 <[email protected]> Closes apache#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
1 parent 10b59ba commit 2f59ce7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mllib/pom.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,19 @@
7878
<scope>test</scope>
7979
</dependency>
8080
</dependencies>
81+
<profiles>
82+
<profile>
83+
<id>netlib-lgpl</id>
84+
<dependencies>
85+
<dependency>
86+
<groupId>com.github.fommil.netlib</groupId>
87+
<artifactId>all</artifactId>
88+
<version>1.1.2</version>
89+
<type>pom</type>
90+
</dependency>
91+
</dependencies>
92+
</profile>
93+
</profiles>
8194
<build>
8295
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
8396
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>

0 commit comments

Comments
 (0)