Skip to content

Commit

Permalink
Exclude duplicated JTA 1.1 from dropwizard-hibernate dependencies
Browse files Browse the repository at this point in the history
`jackson-datatype-hibernate5` pulls a `javax.transaction.jta` artifact and
Jadira pulls `geronimo-jta_1.1_spec`. They are outdated, because Hibernate
already pulls JTA1.2.

This exclude affords to avoid warnings about duplicated classes from the
maven-shade-plugin during assembling a fat jar.
  • Loading branch information
arteam committed Mar 23, 2017
1 parent a8b6bdd commit 7f640c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dropwizard-bom/pom.xml
Expand Up @@ -114,6 +114,10 @@
<groupId>org.joda</groupId>
<artifactId>joda-money</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>geronimo-jta_1.1_spec</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
Expand Down
6 changes: 6 additions & 0 deletions dropwizard-hibernate/pom.xml
Expand Up @@ -31,6 +31,12 @@
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-hibernate5</artifactId>
<exclusions>
<exclusion>
<groupId>javax.transaction</groupId>
<artifactId>jta</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jadira.usertype</groupId>
Expand Down

0 comments on commit 7f640c8

Please sign in to comment.