At present, the dependency tree looks like below (which is wrong): [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ camel-test-spring --- [INFO] org.apache.camel:camel-test-spring:bundle:2.10-SNAPSHOT [INFO] +- org.apache.camel:camel-test:jar:2.10-SNAPSHOT:compile [INFO] | +- org.apache.camel:camel-core:jar:2.10-SNAPSHOT:compile [INFO] | | \- org.slf4j:slf4j-api:jar:1.6.1:compile [INFO] | \- junit:junit:jar:4.10:compile [INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:compile [INFO] +- org.apache.camel:camel-spring:jar:2.10-SNAPSHOT:compile [INFO] | +- org.springframework:spring-context:jar:3.1.1.RELEASE:compile (version managed from 3.0.7.RELEASE) [INFO] | | +- org.springframework:spring-beans:jar:3.1.1.RELEASE:compile [INFO] | | +- org.springframework:spring-core:jar:3.1.1.RELEASE:compile [INFO] | | | \- commons-logging:commons-logging:jar:1.1.1:compile [INFO] | | +- org.springframework:spring-expression:jar:3.1.1.RELEASE:compile [INFO] | | \- org.springframework:spring-asm:jar:3.1.1.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:3.1.1.RELEASE:compile [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile [INFO] | \- org.springframework:spring-tx:jar:3.1.1.RELEASE:compile (version managed from 3.0.7.RELEASE) [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.4:test [INFO] | \- log4j:log4j:jar:1.2.16:test [INFO] \- org.springframework:spring-test:jar:3.1.1.RELEASE:compile
After setting the scope to "provided" and only set the version of the spring-test dependency to 3.1.1.RELEASE, it looks like this: [INFO] --- maven-dependency-plugin:2.1:tree (default-cli) @ camel-test-spring --- [INFO] org.apache.camel:camel-test-spring:bundle:2.10-SNAPSHOT [INFO] +- org.apache.camel:camel-test:jar:2.10-SNAPSHOT:compile [INFO] | +- org.apache.camel:camel-core:jar:2.10-SNAPSHOT:compile [INFO] | | \- org.slf4j:slf4j-api:jar:1.6.1:compile [INFO] | \- junit:junit:jar:4.10:compile [INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:compile [INFO] +- org.apache.camel:camel-spring:jar:2.10-SNAPSHOT:compile [INFO] | +- org.springframework:spring-context:jar:3.0.7.RELEASE:compile [INFO] | | +- org.springframework:spring-beans:jar:3.0.7.RELEASE:compile [INFO] | | +- org.springframework:spring-core:jar:3.0.7.RELEASE:compile [INFO] | | | \- commons-logging:commons-logging:jar:1.1.1:compile [INFO] | | +- org.springframework:spring-expression:jar:3.0.7.RELEASE:compile [INFO] | | \- org.springframework:spring-asm:jar:3.0.7.RELEASE:compile [INFO] | +- org.springframework:spring-aop:jar:3.0.7.RELEASE:compile [INFO] | | \- aopalliance:aopalliance:jar:1.0:compile [INFO] | \- org.springframework:spring-tx:jar:3.0.7.RELEASE:compile [INFO] +- org.slf4j:slf4j-log4j12:jar:1.6.4:test [INFO] | \- log4j:log4j:jar:1.2.16:test [INFO] \- org.springframework:spring-test:jar:3.1.1.RELEASE:provided It looks good for me. What do you think? Best, Christian