You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by va...@apache.org on 2017/07/13 17:41:26 UTC

spark git commit: [SPARK-15526][MLLIB] Shade JPMML

Repository: spark
Updated Branches:
  refs/heads/master d8257b99d -> 5c8edfc4a


[SPARK-15526][MLLIB] Shade JPMML

## What changes were proposed in this pull request?

Shade JPMML classes (`org.jpmml.**`) and related PMML model classes (`org.dmg.pmml.**`). This insulates downstream users from the version of JPMML in Spark, allows us to upgrade more freely, and allows downstream users to use a different version. JPMML minor releases are not generally forwards/backwards compatible.

## How was this patch tested?

Existing tests

Author: Sean Owen <so...@cloudera.com>

Closes #18584 from srowen/SPARK-15526.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/5c8edfc4
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/5c8edfc4
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/5c8edfc4

Branch: refs/heads/master
Commit: 5c8edfc4a8864f4091998901bbca062cd8466b6f
Parents: d8257b9
Author: Sean Owen <so...@cloudera.com>
Authored: Thu Jul 13 10:41:19 2017 -0700
Committer: Marcelo Vanzin <va...@cloudera.com>
Committed: Thu Jul 13 10:41:19 2017 -0700

----------------------------------------------------------------------
 pom.xml | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/5c8edfc4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 1e51ddd..11cd028 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2363,6 +2363,7 @@
               <include>org.eclipse.jetty:jetty-util</include>
               <include>org.eclipse.jetty:jetty-server</include>
               <include>com.google.guava:guava</include>
+              <include>org.jpmml:*</include>
             </includes>
           </artifactSet>
           <relocations>
@@ -2377,6 +2378,14 @@
               <pattern>com.google.common</pattern>
               <shadedPattern>${spark.shade.packageName}.guava</shadedPattern>
             </relocation>
+            <relocation>
+              <pattern>org.dmg.pmml</pattern>
+              <shadedPattern>${spark.shade.packageName}.dmg.pmml</shadedPattern>
+            </relocation>
+            <relocation>
+              <pattern>org.jpmml</pattern>
+              <shadedPattern>${spark.shade.packageName}.jpmml</shadedPattern>
+            </relocation>
           </relocations>
         </configuration>
         <executions>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org