Skip to content

Commit 5c8edfc

Browse files
srowenMarcelo Vanzin
authored andcommitted
[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 <[email protected]> Closes apache#18584 from srowen/SPARK-15526.
1 parent d8257b9 commit 5c8edfc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@
23632363
<include>org.eclipse.jetty:jetty-util</include>
23642364
<include>org.eclipse.jetty:jetty-server</include>
23652365
<include>com.google.guava:guava</include>
2366+
<include>org.jpmml:*</include>
23662367
</includes>
23672368
</artifactSet>
23682369
<relocations>
@@ -2377,6 +2378,14 @@
23772378
<pattern>com.google.common</pattern>
23782379
<shadedPattern>${spark.shade.packageName}.guava</shadedPattern>
23792380
</relocation>
2381+
<relocation>
2382+
<pattern>org.dmg.pmml</pattern>
2383+
<shadedPattern>${spark.shade.packageName}.dmg.pmml</shadedPattern>
2384+
</relocation>
2385+
<relocation>
2386+
<pattern>org.jpmml</pattern>
2387+
<shadedPattern>${spark.shade.packageName}.jpmml</shadedPattern>
2388+
</relocation>
23802389
</relocations>
23812390
</configuration>
23822391
<executions>

0 commit comments

Comments
 (0)