diff options
author | Sean Owen <sowen@cloudera.com> | 2014-10-27 10:53:15 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2014-10-27 10:53:15 -0700 |
commit | bfa614b12795f1cfce4de0950f90cb8c4f2a7d53 (patch) | |
tree | e968afcba36be2d27db36bc17c26f38f1a491a48 /examples/pom.xml | |
parent | 1d7bcc88401d66c8d17a075355acfc25a8b7615c (diff) | |
download | spark-bfa614b12795f1cfce4de0950f90cb8c4f2a7d53.tar.gz spark-bfa614b12795f1cfce4de0950f90cb8c4f2a7d53.tar.bz2 spark-bfa614b12795f1cfce4de0950f90cb8c4f2a7d53.zip |
SPARK-4022 [CORE] [MLLIB] Replace colt dependency (LGPL) with commons-math
This change replaces usages of colt with commons-math3 equivalents, and makes some minor necessary adjustments to related code and tests to match.
Author: Sean Owen <sowen@cloudera.com>
Closes #2928 from srowen/SPARK-4022 and squashes the following commits:
61a232f [Sean Owen] Fix failure due to different sampling in JavaAPISuite.sample()
16d66b8 [Sean Owen] Simplify seeding with call to reseedRandomGenerator
a1a78e0 [Sean Owen] Use Well19937c
31c7641 [Sean Owen] Fix Python Poisson test by choosing a different seed; about 88% of seeds should work but 1 didn't, it seems
5c9c67f [Sean Owen] Additional test fixes from review
d8f88e0 [Sean Owen] Replace colt with commons-math3. Some tests do not pass yet.
Diffstat (limited to 'examples/pom.xml')
-rw-r--r-- | examples/pom.xml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/pom.xml b/examples/pom.xml index eb49a0e5af..bc3291803c 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -157,6 +157,10 @@ <version>0.1.11</version> </dependency> <dependency> + <groupId>org.apache.commons</groupId> + <artifactId>commons-math3</artifactId> + </dependency> + <dependency> <groupId>org.scalatest</groupId> <artifactId>scalatest_${scala.binary.version}</artifactId> <scope>test</scope> @@ -268,6 +272,10 @@ <exclude>com.google.common.base.Optional**</exclude> </excludes> </relocation> + <relocation> + <pattern>org.apache.commons.math3</pattern> + <shadedPattern>org.spark-project.commons.math3</shadedPattern> + </relocation> </relocations> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" /> |