I think this is a bug in surefire. If I run my project with mvn -X I see in
the output :


[DEBUG] Retrieving parent-POM:
org.apache.myfaces.maven:myfaces-master::1.0.2 for project:
org.apache.myfaces.core:myfaces-core-project:pom:1.1. from the repository.
[DEBUG]       org.apache.myfaces.core:myfaces-impl:jar:1.1.3:compile(selected
for compile)
[DEBUG]         commons-codec:commons-codec:jar:1.3:compile (selected for
compile)
[DEBUG]
commons-collections:commons-collections:jar:3.1:compile(selected for
compile)
[DEBUG]         commons-logging:commons-logging:jar:1.0.4:compile (selected
forcompile)
[DEBUG]         commons-el:commons-el:jar:1.0:compile (selected for compile)
[DEBUG]           commons-logging:commons-logging:jar:1.0.3:compile (removed
- nearer found: 1.0.4)

....
[DEBUG]       org.apache.myfaces.core:myfaces-api:jar:1.1.3:compile(selected
for compile)
[DEBUG]         javax.servlet:jstl:jar:1.1.0:compile (selected for compile)
[DEBUG]         commons-digester:commons-digester:jar:1.6:compile (selected
for compile)
[DEBUG]
commons-beanutils:commons-beanutils:jar:1.6:compile(selected for
compile)
[DEBUG]             commons-logging:commons-logging:jar:1.0:compile (removed
- nearer found: 1.0.4)
[DEBUG]
commons-collections:commons-collections:jar:2.0:compile(removed -
nearer found:
3.1)

...

[DEBUG]     org.springframework:spring:jar:2.0:compile (selected for
compile)
[DEBUG]       commons-logging:commons-logging:jar:1.0.4:compile (removed -
nearer found: 1.1)
[DEBUG]       commons-logging:commons-logging:jar:1.1:compile (selected for
compile)
[DEBUG]
avalon-framework:avalon-framework:jar:4.1.3:compile(selected for
compile)
[DEBUG]         javax.servlet:servlet-api:jar:2.3:compile (selected for
compile)
[DEBUG]           commons-logging:commons-logging:jar:1.0:compile (removed -
nearer found: 1.0.4)
... etc., etc

However, the version of commons-logging that appears in my classpath for
test is 1.0.4, NOT 1.1 as it appears that it ought to be. Additionally, this
means that avalon-framework is not present in my surefire test classpath,
causing tests to break.

Reply via email to