Closed neykov closed 7 years ago
I tried testing this in brooklyn - I changed (locally) its version to 0.4.0-rc1, updated the brooklyn dependency, and re-compiled. It failed with the error show below.
I'll dig into this a bit more, but suspect it means we should be excluding one of httpcore-nio version 4.4.4
or 4.4.5
in winrm4j's pom.
[INFO] --- maven-enforcer-plugin:1.4.1:enforce (brooklyn-build-req) @ brooklyn-software-winrm ---
[WARNING]
Dependency convergence error for org.apache.httpcomponents:httpcore-nio:4.4.4 paths to dependency are:
+-org.apache.brooklyn:brooklyn-software-winrm:0.11.0-SNAPSHOT
+-io.cloudsoft.windows:winrm4j:0.4.0-rc1
+-io.cloudsoft.windows:winrm4j-client:0.4.0-rc1
+-org.apache.cxf:cxf-rt-transports-http-hc:3.1.9
+-org.apache.httpcomponents:httpcore-nio:4.4.4
and
+-org.apache.brooklyn:brooklyn-software-winrm:0.11.0-SNAPSHOT
+-io.cloudsoft.windows:winrm4j:0.4.0-rc1
+-io.cloudsoft.windows:winrm4j-client:0.4.0-rc1
+-org.apache.cxf:cxf-rt-transports-http-hc:3.1.9
+-org.apache.httpcomponents:httpasyncclient:4.1.2
+-org.apache.httpcomponents:httpcore-nio:4.4.5
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability the error(s) are [
Dependency convergence error for org.apache.httpcomponents:httpcore-nio:4.4.4 paths to dependency are:
+-org.apache.brooklyn:brooklyn-software-winrm:0.11.0-SNAPSHOT
+-io.cloudsoft.windows:winrm4j:0.4.0-rc1
+-io.cloudsoft.windows:winrm4j-client:0.4.0-rc1
+-org.apache.cxf:cxf-rt-transports-http-hc:3.1.9
+-org.apache.httpcomponents:httpcore-nio:4.4.4
and
+-org.apache.brooklyn:brooklyn-software-winrm:0.11.0-SNAPSHOT
+-io.cloudsoft.windows:winrm4j:0.4.0-rc1
+-io.cloudsoft.windows:winrm4j-client:0.4.0-rc1
+-org.apache.cxf:cxf-rt-transports-http-hc:3.1.9
+-org.apache.httpcomponents:httpasyncclient:4.1.2
+-org.apache.httpcomponents:httpcore-nio:4.4.5
]
It might be worth adding maven-enforcer-plugin
(as is used in brooklyn) to catch such problems earlier?
Closing in favour of #48.
[DO NOT MERGE] until Brooklyn upgrades to CXF 3.1.9.
Upgrades to http client 4.5.2 which fixes https://issues.apache.org/jira/browse/HTTPCLIENT-1715.
When executing
WinRmToolExecLiveTest.testToolConcurrentReuse()
I get the following error before the upgrade: