I have parent pom with such config:
org.apache.httpcomponents
httpclient
4.2.9
And my child pom:
org.apache.httpcomponents
httpclient
4.3.5
I want to use 4.3.5 version in my classpath, because at the moment I am getting error, parent version should not be modified:
java.lang.NoClassDefFoundError: org/apache/http/impl/client/HttpClients
Any ideas how to prevent from overriding that 4.2.9 version?
解决方案
I changed parent version to desired and removed dependency from child (the simple and the best solution).
Thanks goues to @Deltharis for the comments!