CXF 3.0 has been updated to the latest versions. We cannot on 2.7 due to some API incompatibilities.
Dan On Apr 15, 2014, at 1:59 PM, Mandy Warren <[email protected]> wrote: > > Hi, > > 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> > > I've raised Jirahttps://issues.apache.org/jira/browse/CXF-5690 to ask > whether it's possible for you to depend on the latest release version of > httpasyncclient in future releases which I think will solve the issue. > > Many thanks > Mandy > > Sent from a mobile device -- Daniel Kulp [email protected] - http://dankulp.com/blog Talend Community Coder - http://coders.talend.com
