> Looking at your terminologies and file snippets: Are you using Spring
> in your projects?
> 
Yes



> If (I assume so) Spring is involved, this should work, at least I do
> have libraries (jar artifacts) wired up with web applications (war
> artifacts) right this way. Where is your DependencyTestContext.xml
> located? Are you sure this is a maven2 related problem?
> 

I'm not sure if this is a maven2 problem.

The test application context in the dependency is located in the
/src/test/resources folder in its project
(in the project I'm writing the tests for, my app context is in
/src/test/resources also).

The actual error I'm getting when I use the
<import resource="classpath:DependencyTestContext.xml" /> line is:

org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from URL location
[classpath:DependencyTestContext.xml]

-- 
View this message in context: 
http://www.nabble.com/Unit-tests-seeing-test-application-context-files-in-their-dependencies-tp17881883p17882205.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to