I have my Spring application context files in my src/test/resources
directory. I am telling Spring to load it using this pattern:

[INFO] "Loading config for: classpath:applicationContext-*.xml"

This is what happens in Maven 2.0.7:
[DEBUG]
org.springframework.core.io.support.PathMatchingResourcePatternResolver  -
Searching directory [D:\workspace\myproject\target\test-classes]

But in 2.0.8:
[DEBUG]
org.springframework.core.io.support.PathMatchingResourcePatternResolver  -
Searching directory [D:\workspace\myproject\target\classes]

I know the classpath was switched between main/test in 2.0.8, but how does
that change Spring? I tried both versions of Spring 1.2.8/2.0.7 with the
same results.

Is there anyway to use 2.0.8 with Spring wildcard matching for unit testing?
How can I get Spring to specifically get the test classpath again? I am
afraid I must stay at 2.0.7 until this is resolved.

Paul

Reply via email to