Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependencies confict in OSS #35

Closed
cmygit opened this issue May 30, 2020 · 3 comments · Fixed by #53
Closed

Dependencies confict in OSS #35

cmygit opened this issue May 30, 2020 · 3 comments · Fixed by #53
Assignees
Labels
bug Something isn't working

Comments

@cmygit
Copy link

cmygit commented May 30, 2020

Describe the bug
image

image

image

image

I guess the reason is the relation of "aliyun-sdk-oss" and "aliyun-java-sdk-core".

The dependencyManagement of "aliyun-spring-boot-dependencies",it appoint the version of "aliyun-sdk-oss" is 3.1.0 and the version of "aliyun-java-sdk-core" is 4.5.0.

But "aliyun-sdk-oss-3.1.0" is rely on "aliyun-java-sdk-core-3.4.0"

image

image

@cmygit cmygit added the bug Something isn't working label May 30, 2020
@ms-xiaosnow
Copy link

ms-xiaosnow commented Aug 29, 2020

see #40 , you could execlue the incompatible version using <execlusions> tag

@theonefx
Copy link
Collaborator

theonefx commented Aug 31, 2020

try move dependencyManagement to parent module:
image

@theonefx
Copy link
Collaborator

There is the dependency tree:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] demo [pom]
[INFO] common-module [jar]
[INFO] m1-sub-module [jar]
[INFO]
[INFO] --------------------------< com.example:demo >--------------------------
[INFO] Building demo 0.0.1-SNAPSHOT [1/3]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ demo ---
[INFO] com.example:demo:pom:0.0.1-SNAPSHOT
[INFO]
[INFO] ---------------------< com.example:common-module >----------------------
[INFO] Building common-module 0.0.1-SNAPSHOT [2/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ common-module ---
[INFO] com.example:common-module:jar:0.0.1-SNAPSHOT
[INFO] - com.alibaba.cloud:aliyun-oss-spring-boot-starter:jar:1.0.0:compile
[INFO] +- com.alibaba.cloud:aliyun-context-spring-boot-starter:jar:1.0.0:compile
[INFO] | +- com.alibaba.cloud:alicloud-context:jar:1.0.5:compile
[INFO] | - com.aliyun:aliyun-java-sdk-edas:jar:2.44.0:compile
[INFO] | - com.google.code.gson:gson:jar:2.8.6:compile
[INFO] - com.aliyun.oss:aliyun-sdk-oss:jar:3.1.0:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | - commons-codec:commons-codec:jar:1.14:compile
[INFO] +- org.jdom:jdom:jar:1.1:compile
[INFO] +- com.sun.jersey:jersey-json:jar:1.9:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | - stax:stax-api:jar:1.0.1:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[INFO] | - com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] +- com.aliyun:aliyun-java-sdk-core:jar:4.5.0:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | - javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | +- org.jacoco:org.jacoco.agent:jar:runtime:0.8.5:compile
[INFO] | +- org.ini4j:ini4j:jar:0.5.4:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | +- io.opentracing:opentracing-api:jar:0.33.0:compile
[INFO] | - io.opentracing:opentracing-util:jar:0.33.0:compile
[INFO] | - io.opentracing:opentracing-noop:jar:0.33.0:compile
[INFO] +- com.aliyun:aliyun-java-sdk-ram:jar:3.0.0:compile
[INFO] +- com.aliyun:aliyun-java-sdk-sts:jar:3.0.0:compile
[INFO] - com.aliyun:aliyun-java-sdk-ecs:jar:4.2.0:compile
[INFO]
[INFO] ---------------------< com.example:m1-sub-module >----------------------
[INFO] Building m1-sub-module 0.0.1-SNAPSHOT [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ m1-sub-module ---
[INFO] com.example:m1-sub-module:jar:0.0.1-SNAPSHOT
[INFO] - com.example:common-module:jar:0.0.1-SNAPSHOT:compile
[INFO] - com.alibaba.cloud:aliyun-oss-spring-boot-starter:jar:1.0.0:compile
[INFO] +- com.alibaba.cloud:aliyun-context-spring-boot-starter:jar:1.0.0:compile
[INFO] | +- com.alibaba.cloud:alicloud-context:jar:1.0.5:compile
[INFO] | - com.aliyun:aliyun-java-sdk-edas:jar:2.44.0:compile
[INFO] | - com.google.code.gson:gson:jar:2.8.6:compile
[INFO] - com.aliyun.oss:aliyun-sdk-oss:jar:3.1.0:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | - commons-codec:commons-codec:jar:1.14:compile
[INFO] +- org.jdom:jdom:jar:1.1:compile
[INFO] +- com.sun.jersey:jersey-json:jar:1.9:compile
[INFO] | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | - stax:stax-api:jar:1.0.1:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | +- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[INFO] | - com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] +- com.aliyun:aliyun-java-sdk-core:jar:4.5.0:compile
[INFO] | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | - javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | +- org.jacoco:org.jacoco.agent:jar:runtime:0.8.5:compile
[INFO] | +- org.ini4j:ini4j:jar:0.5.4:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | +- io.opentracing:opentracing-api:jar:0.33.0:compile
[INFO] | - io.opentracing:opentracing-util:jar:0.33.0:compile
[INFO] | - io.opentracing:opentracing-noop:jar:0.33.0:compile
[INFO] +- com.aliyun:aliyun-java-sdk-ram:jar:3.0.0:compile
[INFO] +- com.aliyun:aliyun-java-sdk-sts:jar:3.0.0:compile
[INFO] - com.aliyun:aliyun-java-sdk-ecs:jar:4.2.0:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for demo 0.0.1-SNAPSHOT:
[INFO]
[INFO] demo ............................................... SUCCESS [ 0.691 s]
[INFO] common-module ...................................... SUCCESS [ 0.218 s]
[INFO] m1-sub-module ...................................... SUCCESS [ 0.063 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.297 s
[INFO] Finished at: 2020-08-31T19:25:37+08:00
[INFO] ------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants