tencentyun/cos-java-sdk-v5

COS SDK 有依赖冲突

shangwen opened this issue · 1 comments

执行命令

mvn dependency:tree -Dverbose

出现了okio:jar:1.6.0:compile - omitted for conflict with 1.12.0

[INFO] ------------------------------------------------------------------------
[INFO] Building cos-java-sdk 5.6.42
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ cos_api ---
[INFO] com.qcloud:cos_api:jar:5.6.42
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.3:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.4.6:compile
[INFO] |  \- commons-logging:commons-logging:jar:1.2:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] +- commons-codec:commons-codec:jar:1.10:compile
[INFO] +- joda-time:joda-time:jar:2.9.9:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.12.1:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.1:compile
[INFO] |  \- com.fasterxml.jackson.core:jackson-core:jar:2.12.1:compile
[INFO] +- com.tencentcloudapi:tencentcloud-sdk-java-kms:jar:3.1.213:compile
[INFO] |  \- com.tencentcloudapi:tencentcloud-sdk-java-common:jar:3.1.213:compile
[INFO] |     +- (commons-logging:commons-logging:jar:1.2:compile - omitted for duplicate)
[INFO] |     +- com.squareup.okhttp:logging-interceptor:jar:2.7.5:compile
[INFO] |     |  \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] |     |     \- (com.squareup.okio:okio:jar:1.6.0:compile - omitted for conflict with 1.12.0)
[INFO] |     +- com.squareup.okio:okio:jar:1.12.0:compile
[INFO] |     +- com.google.code.gson:gson:jar:2.2.4:compile
[INFO] |     \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
[INFO] +- junit:junit:jar:4.13.1:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
[INFO] +- com.qcloud:qcloud-java-sdk:jar:2.0.6:test
[INFO] \- com.tencent.cloud:cos-sts-java:jar:3.0.8:test
[INFO]    \- org.json:json:jar:20180130:test

确实是!感谢提示。