Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Issue OryxProject#336 : document workaround for PMML shading problem …
Browse files Browse the repository at this point in the history
…with MLUpdate
  • Loading branch information
srowen committed Jul 13, 2017
1 parent f414d58 commit ab7c231
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions app/example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,48 @@
</execution>
</executions>
</plugin>

<!-- This shade plugin is only required if your app extends the MLUpdate class.
This works around https://github.com/OryxProject/oryx/issues/336 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<!-- Replace the groupId below with your application's groupId -->
<include>com.cloudera.oryx:*</include>
</includes>
</artifactSet>
<!-- relocations should match those defined in the parent pom.xml -->
<relocations>
<relocation>
<pattern>org.jpmml</pattern>
<shadedPattern>oryx.org.jpmml</shadedPattern>
<includes>
<include>org.jpmml.**</include>
</includes>
</relocation>
<relocation>
<pattern>org.dmg</pattern>
<shadedPattern>oryx.org.dmg</shadedPattern>
<includes>
<include>org.dmg.**</include>
</includes>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit ab7c231

Please sign in to comment.