title: How to exclude hadoop core jersey dependency
body: <p>I upgraded my hadoop dependencies from 1.1.1 to 0.2.0 hadoop. </p>
  
  <p>Here is my problem: 
  My mapreduce project depends on jersey, and hadoop 0.2.0 core depends on an older version of jersey.
  So a method in my mapreduce classes leads to "java.lang.NoSuchMethodError: javax.ws.rs.core.MultivaluedMap.addAll" </p>
  
  <p>As a Solution: 
  In the pom file, I excluded jersey from hadoop dependency, but this still didn't solve the overall problem</p>
  
  <p>When I try running a class with the function (that used to lead to error) as java, now it works. However when I try to run it with hadoop command it keeps giving me same error. </p>