application > lib-level1 > lib-level2
(Focus on jackson-core
)
For lib-level2
jackson-core
is in compile
scope.
[INFO] org.example:lib-level2:jar:1.0-SNAPSHOT
[INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.15.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.2:compile
[INFO] \- com.fasterxml.jackson.core:jackson-core:jar:2.15.2:compile
For lib-level1
jackson-core
is in test
scope.
[INFO] org.example:lib-level1:jar:1.0-SNAPSHOT
[INFO] +- org.example:lib-level2:jar:1.0-SNAPSHOT:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.15.2:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.2:compile
[INFO] +- junit:junit:jar:4.13.1:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- com.fasterxml.jackson.core:jackson-core:jar:2.15.2:test
For application
jackson-core
is in compile
scope again, automatically.
[INFO] org.example:application:jar:1.0-SNAPSHOT
[INFO] \- org.example:lib-level1:jar:1.0-SNAPSHOT:compile
[INFO] \- org.example:lib-level2:jar:1.0-SNAPSHOT:compile
[INFO] \- com.fasterxml.jackson.core:jackson-databind:jar:2.15.2:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.15.2:compile
[INFO] \- com.fasterxml.jackson.core:jackson-core:jar:2.15.2:compile