Skip to content

Commit

Permalink
[backport-0.3] use shade to package jar-with-dependencies (#1840)
Browse files Browse the repository at this point in the history
* use shade to package jar-with-dependencies

* ajust incident
  • Loading branch information
qiuxin2012 authored and yiheng-wang-intel committed Nov 7, 2017
1 parent 4412240 commit a445cab
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions spark/dl/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,6 @@
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<artifactSet>
<includes>
<include>com.google.protobuf</include>
</includes>
</artifactSet>
<filters>
<filter>
<artifact>com.google.protobuf</artifact>
Expand All @@ -189,30 +184,36 @@
</configuration>
<executions>
<execution>
<id>shade</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<includes>
<include>com.google.protobuf</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>without-spark</id>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<phase>package</phase>
<goals>
<goal>single</goal>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<id>with-spark</id>
<configuration>
Expand Down

0 comments on commit a445cab

Please sign in to comment.