Skip to content

Commit 86e8890

Browse files
committed
Merge pull request auth0#6 from red6/master
Repackage maven dependencies to avoid conflicts with Jackson version.
2 parents 0bd0679 + d2230d6 commit 86e8890

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Maven Shaded Jar Artifact
2+
dependency-reduced-pom.xml
3+
14
node_modules
25

36
# Ignore Eclipse stuff

pom.xml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
<properties>
1919
<java.version>1.6</java.version>
20+
<repackage.base>com.auth0.jwt.internal</repackage.base>
2021
</properties>
2122

2223
<licenses>
@@ -76,6 +77,33 @@
7677
<encoding>UTF-8</encoding>
7778
</configuration>
7879
</plugin>
80+
<plugin>
81+
<groupId>org.apache.maven.plugins</groupId>
82+
<artifactId>maven-shade-plugin</artifactId>
83+
<version>2.2</version>
84+
<executions>
85+
<execution>
86+
<phase>package</phase>
87+
<goals>
88+
<goal>shade</goal>
89+
</goals>
90+
<configuration>
91+
<shadedArtifactAttached>false</shadedArtifactAttached>
92+
<createDependencyReducedPom>true</createDependencyReducedPom>
93+
<relocations>
94+
<relocation>
95+
<pattern>com.fasterxml.jackson</pattern>
96+
<shadedPattern>${repackage.base}.com.fasterxml.jackson</shadedPattern>
97+
</relocation>
98+
<relocation>
99+
<pattern>org.apache.commons.codec</pattern>
100+
<shadedPattern>${repackage.base}.org.apache.commons.codec</shadedPattern>
101+
</relocation>
102+
</relocations>
103+
</configuration>
104+
</execution>
105+
</executions>
106+
</plugin>
79107
</plugins>
80108
</build>
81109
</project>

0 commit comments

Comments
 (0)