Re: target/test-classes priority over target/classes

2009-05-19 Thread Artur Wystub

Put your test resource in src/test/resources so it should work.

Felipe Kamakura schrieb:

Hello,

Does Maven gives priority to classes and resources in target/test-classes
over classes and resources in target/classes?

I'm asking this because I making a test, and it uses a resource that has the
same name of a resource in src/main/resources. I expect that my test sees
this test resource, not the main resource, but It's not working.

In fact it works sometimes, and sometimes it doesn't.

Any ideas?

Thanks a lot!

  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



target/test-classes priority over target/classes

2009-05-19 Thread Felipe Kamakura
Hello,

Does Maven gives priority to classes and resources in target/test-classes
over classes and resources in target/classes?

I'm asking this because I making a test, and it uses a resource that has the
same name of a resource in src/main/resources. I expect that my test sees
this test resource, not the main resource, but It's not working.

In fact it works sometimes, and sometimes it doesn't.

Any ideas?

Thanks a lot!