users@jersey.java.net

Re: [jersey] jersey with jackson-jaxrs

From: Jason Drake <jadrake75_at_comcast.net>
Date: Wed, 27 Oct 2010 20:01:03 -0500

Just to close the loop, I checked my maven pom.xml, and it was
jersey-json that was bringing in the dependency on jackson-jaxrs version
1.5.5 through maven. I have since modified my pom.xml to exclude this
JAR for the jersey-json (I actually had to do something similiar for
stax-api (had two competing versions)).

For reference here is what this looks like:

        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-json</artifactId>
            <version>1.4</version>
            <scope>compile</scope>
          <!-- add exclusion rule for jackson-jaxrs default providers. -->
            <exclusions>
                <exclusion>
                    <groupId>org.codehaus.jackson</groupId>
                    <artifactId>jackson-jaxrs</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


Cheers everyone!

-Jason