Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1313

resteasy-spring declares unnecessary dependency on resteasy-jettison-provider

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 3.0.17.Final
    • 3.0.16.Final
    • None
    • None
    • Workaround Exists
    • Hide

      One can explicitly exclude the transitive dependency, like:

          <dependency>
            <groupId>org.jboss.resteasy</groupId>
            <artifactId>resteasy-spring</artifactId>
            <exclusions>
              <exclusion>
                <groupId>org.jboss.resteasy</groupId>
                <artifactId>resteasy-jettison-provider</artifactId>
              </exclusion>
            </exclusions>
          </dependency>
      
      Show
      One can explicitly exclude the transitive dependency, like: <dependency> <groupId> org.jboss.resteasy </groupId> <artifactId> resteasy-spring </artifactId> <exclusions> <exclusion> <groupId> org.jboss.resteasy </groupId> <artifactId> resteasy-jettison-provider </artifactId> </exclusion> </exclusions> </dependency>

    Description

      I noticed that by declaring a dependency on resteasy-spring, it is pulling in a transitive dependency on resteasy-jettison-provider. That seems odd, but more importantly this is conflicting with my choice of Jackson2. (Oddly, they can coexist fine with Java 7, but when moving to Java 8, Jettison is taking over and I can't have that; I need Jackson2.)

      From my brief analysis, it appears that resteasy-spring needs resteasy-jettison-provider purely for testing, so adding a <scope>test</scope> will solve my problem.

      Attachments

        Activity

          People

            weinanli Weinan Li
            awhitford Anthony Whitford (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: