-
Notifications
You must be signed in to change notification settings - Fork 299
Excluding Jetty Artifacts
Following this user thread 0.7.0-24 Released Oleg was kind enough to share how jetty dependencies can be removed. Jetty is a transitive dependency that should actually be removed with cassandra 0.7.1 but until it's remove, here's a workaround for hecotr users who want to get rid of it.
From Oleg: I excluded Jetty entirely and I did not have to add an interface. It's a little tricky because to exclude dependency of dependency, one needs to include the dependency of dependency first (below, I include cassandra-all right after hector-core) and exclude unwanted dependencies (like I'm excluding jetty from cassandra-all).
This is not a patch for either Hector or Cassandra but exclusion right at the place where dependency is declared, i.e. application.
<dependency> <groupId>me.prettyprint</groupId> <artifactId>hector-core</artifactId> <type>jar</type> </dependency> <dependency> <groupId>org.apache.cassandra</groupId> <artifactId>cassandra-all</artifactId> <version>0.7.0</version> <type>jar</type> <scope>compile</scope> <exclusions> <exclusion> <artifactId>jetty</artifactId> <groupId>org.mortbay.jetty</groupId> </exclusion> </exclusions>