Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

Commit 3267c77

Browse files
committed
Shade dependencies in uber jar
1 parent c2e5306 commit 3267c77

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

Diff for: pom.xml

+16-7
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,27 @@
9494
</configuration>
9595
</plugin>
9696
<plugin>
97-
<artifactId>maven-assembly-plugin</artifactId>
98-
<configuration>
99-
<descriptorRefs>
100-
<descriptorRef>jar-with-dependencies</descriptorRef>
101-
</descriptorRefs>
102-
</configuration>
97+
<groupId>org.apache.maven.plugins</groupId>
98+
<artifactId>maven-shade-plugin</artifactId>
99+
<version>1.4</version>
103100
<executions>
104101
<execution>
105102
<phase>package</phase>
106103
<goals>
107-
<goal>single</goal>
104+
<goal>shade</goal>
108105
</goals>
106+
<configuration>
107+
<relocations>
108+
<relocation>
109+
<pattern>org.joda.time</pattern>
110+
<shadedPattern>com.proofpoint.hive.serde.shaded.jodatime</shadedPattern>
111+
</relocation>
112+
<relocation>
113+
<pattern>org.codehaus.jackson</pattern>
114+
<shadedPattern>com.proofpoint.hive.serde.shaded.jackson</shadedPattern>
115+
</relocation>
116+
</relocations>
117+
</configuration>
109118
</execution>
110119
</executions>
111120
</plugin>

0 commit comments

Comments
 (0)