Override dependencies of third party jar in maven

前端 未结 3 1500
灰色年华
灰色年华 2021-01-05 07:13

Like this org.carrot2 is depending on commons-httpclient 3.1 So how I can change this commons-httpclient 3.1 to HttpClient 4.1.1

3条回答
  •  天命终不由人
    2021-01-05 07:56

    If something depends on HttpClient 3.x it will not work to substitute 4.x since they are completely different APIs. You will get runtime errors when trying to access the code that relies on 3.x.

提交回复
热议问题