Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-5690

Upgrade cxf-rt-transports-http-hc to depend on latest release of httpasyncclient

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.11
    • 3.0
    • Transports
    • None
    • Unknown

    Description

      When I bring in the cxf-rt-transports-http-hc Maven dependency I get the following dependency convergence errors (we use the maven-enforcer):-

      [ERROR] +-org.apache.httpcomponents:httpclient:4.2.5
      [ERROR] +-org.apache.httpcomponents:httpcore:4.2.4
      [ERROR] and
      [ERROR] +-org.apache.cxf:cxf-rt-transports-http-hc:2.7.11
      [ERROR] +-org.apache.httpcomponents:httpcore-nio:4.2.4
      [ERROR] +-org.apache.httpcomponents:httpcore:4.2.4
      [ERROR] and
      [ERROR] +-org.apache.cxf:cxf-rt-transports-http-hc:2.7.11
      [ERROR] +-org.apache.httpcomponents:httpasyncclient:4.0-beta3
      [ERROR] +-org.apache.httpcomponents:httpcore:4.2.2
      [ERROR] ,

      [ERROR] +-org.apache.cxf:cxf-rt-transports-http-hc:2.7.11
      [ERROR] +-org.apache.httpcomponents:httpcore-nio:4.2.4
      [ERROR] and
      [ERROR] +-org.apache.cxf:cxf-rt-transports-http-hc:2.7.11
      [ERROR] +-org.apache.httpcomponents:httpasyncclient:4.0-beta3
      [ERROR] +-org.apache.httpcomponents:httpcore-nio:4.2.2

      I fix this by adding the following exclusions:-
      <exclusions>
      <exclusion>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpcore-nio</artifactId>
      </exclusion>
      <exclusion>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpcore</artifactId>
      </exclusion>
      <exclusion>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      </exclusion>
      </exclusions>

      and then adding in the following explicit dependencies:-
      <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpcore</artifactId>
      <version>4.2.4</version>
      <scope>test</scope>
      </dependency>
      <dependency>
      <groupId>org.apache.httpcomponents</groupId>
      <artifactId>httpcore-nio</artifactId>
      <version>4.2.4</version>
      <scope>test</scope>
      </dependency>

      It's not a big deal but wondered if you could depend on the latest release version of httpasyncclient?

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            mandyp Mandy Warren
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: