Greetings,

On Wed, Jul 25, 2012 at 5:56 AM, Moshe <[email protected]> wrote:
> I'm writing an integration test that involves more than one project. I
> created a test jar for all projects but from some reason it the spring
> context doesn't "see" the resources that are defined in the other projects'
> test jar (although I defined a dependency in test scope for the test jar).
> do you have any idea regarding what the problem is ?
> how can I debug it ?

I am sure you already did this, but humor us and one more time verify
you have the proper dependencies, use tools like:

mvn dependency:tree
mvn dependency:analyze
mvn dependency:copy-dependencies
jar tf 
target/dependencies/my-test-dep-that-i-swear-blood-oath-has-the-resource.jar
| grep resourceName

Then verify that you are loading the application context resource
(applicationContext.xml?) in a proper way, e.g:

classpath*:*/applicationContext.xml

Note the Kleene star at the end of classpath, this is not a typo.
Also, asking good questions goes a long way. Reporting your Maven
version, Java version, and in this case Spring versions, will be
useful. To help:

mvn enforcer:display-info

-Jesse

-- 
There are 10 types of people in this world, those
that can read binary and those that can not.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to