Skip to content

Commit

Permalink
Shade jersey dependencies in JDBC to avoid conflicts with jersey-test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Kunicki committed Aug 16, 2016
1 parent 0c19d3f commit 0c53bc3
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion modules/jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,29 @@
</execution>
</executions>
<configuration>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
</transformers>
<relocations>
<relocation>
<pattern>com.google.common</pattern>
<shadedPattern>org.testcontainers.shaded.com.google.common</shadedPattern>
</relocation>
<relocation>
<pattern>org.glassfish</pattern>
<shadedPattern>org.testcontainers.shaded.org.glassfish</shadedPattern>
</relocation>
<relocation>
<pattern>javax.ws.rs</pattern>
<shadedPattern>org.testcontainers.shaded.javax.ws.rs</shadedPattern>
</relocation>
<relocation>
<pattern>com.fasterxml.jackson</pattern>
<shadedPattern>org.testcontainers.shaded.com.fasterxml.jackson</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
Expand All @@ -55,10 +73,22 @@
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
<filter>
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/services/com.fasterxml.jackson.core.*</exclude>
<exclude>META-INF/services/com.github.dockerjava.api.command.*</exclude>
<exclude>META-INF/services/javax.ws.rs.ext.*</exclude>
<exclude>META-INF/services/org.glassfish.hk2.extension.*</exclude>
<exclude>META-INF/services/org.jvnet.hk2.external.generator.*</exclude>
<exclude>META-INF/services/org.glassfish.jersey.internal.spi.*</exclude>
</excludes>
</filter>
</filters>
<artifactSet>
<excludes>
<exclude>com.google.guava:*</exclude>
<exclude>org.glassfish.*:*</exclude>
</excludes>
</artifactSet>
<promoteTransitiveDependencies>true</promoteTransitiveDependencies>
Expand All @@ -67,4 +97,4 @@
</plugin>
</plugins>
</build>
</project>
</project>

0 comments on commit 0c53bc3

Please sign in to comment.