| 1 | ## Using the shaded JAR |
| 2 | |
| 3 | The default driver JAR depends on [Netty](http://netty.io/), which is |
| 4 | used internally for networking. |
| 5 | |
| 6 | This explicit dependency can be a problem if your application already |
| 7 | uses another Netty version. To avoid conflicts, we provide a "shaded" |
| 8 | version of the JAR, which bundles the Netty classes under a different |
| 9 | package name: |
| 10 | |
| 11 | ```xml |
| 12 | <dependency> |
| 13 | <groupId>${project.groupId}</groupId> |
| 14 | <artifactId>cassandra-driver-core</artifactId> |
| 15 | <version>2.0.10</version> |
| 16 | <classifier>shaded</classifier> |
| 17 | <!-- Because the shaded JAR uses the original POM, you still need |
| 18 | to exclude this dependency explicitly: --> |
| 19 | <exclusions> |
| 20 | <exclusion> |
| 21 | <groupId>io.netty</groupId> |
| 22 | <artifactId>*</artifactId> |
| 23 | </exclusion> |
| 24 | </exclusions> |
| 25 | </dependency> |
| 26 | ``` |