Skip to content

Commit a445cab

Browse files
qiuxin2012yiheng-wang-intel
authored andcommitted
[backport-0.3] use shade to package jar-with-dependencies (#1840)
* use shade to package jar-with-dependencies * ajust incident
1 parent 4412240 commit a445cab

File tree

1 file changed

+19
-18
lines changed

1 file changed

+19
-18
lines changed

spark/dl/pom.xml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,6 @@
167167
<artifactId>maven-shade-plugin</artifactId>
168168
<version>3.0.0</version>
169169
<configuration>
170-
<artifactSet>
171-
<includes>
172-
<include>com.google.protobuf</include>
173-
</includes>
174-
</artifactSet>
175170
<filters>
176171
<filter>
177172
<artifact>com.google.protobuf</artifact>
@@ -189,30 +184,36 @@
189184
</configuration>
190185
<executions>
191186
<execution>
187+
<id>shade</id>
192188
<phase>package</phase>
193189
<goals>
194190
<goal>shade</goal>
195191
</goals>
192+
<configuration>
193+
<artifactSet>
194+
<includes>
195+
<include>com.google.protobuf</include>
196+
</includes>
197+
</artifactSet>
198+
</configuration>
196199
</execution>
197-
</executions>
198-
</plugin>
199-
200-
<plugin>
201-
<groupId>org.apache.maven.plugins</groupId>
202-
<artifactId>maven-assembly-plugin</artifactId>
203-
<executions>
204200
<execution>
205201
<id>without-spark</id>
206-
<configuration>
207-
<descriptorRefs>
208-
<descriptorRef>jar-with-dependencies</descriptorRef>
209-
</descriptorRefs>
210-
</configuration>
211202
<phase>package</phase>
212203
<goals>
213-
<goal>single</goal>
204+
<goal>shade</goal>
214205
</goals>
206+
<configuration>
207+
<shadedArtifactAttached>true</shadedArtifactAttached>
208+
<shadedClassifierName>jar-with-dependencies</shadedClassifierName>
209+
</configuration>
215210
</execution>
211+
</executions>
212+
</plugin>
213+
<plugin>
214+
<groupId>org.apache.maven.plugins</groupId>
215+
<artifactId>maven-assembly-plugin</artifactId>
216+
<executions>
216217
<execution>
217218
<id>with-spark</id>
218219
<configuration>

0 commit comments

Comments
 (0)