Hi,

I really don't know what is happening here:

There is a file META-INF/persistence.xml as well in

src/test/resources

as in

src/main/resources

But when I execute "mvn test" in the UBI-ALS-NG/UBI-ALS-NG-datamodel folder
the wrong persistence.xml
is loaded, i.e. the one in src/main/resources. Although I see with mvn -X
that the class path
seems to be in the right order with target/test-classes first.

There is also one BlaTest class which demonstrates the problem: It locates
some bla.txt resource (which
again exists in both paths) and prints the URL. What I see is

file:/C:/TEMP/UBI-ALS-NG/UBI-ALS-NG-datamodel/target/classes/bla.txt

Which is of course also wrong. 


Please try yourself:

1. Unzip the attached file and cd into the folder
UBI-ALS-NG/UBI-ALS-NG-datamodel 

2. run "mvn test"

Environment: Maven 2.0.9

Does anyone haven an idea why such a basic thing could possibly go
wrong??????


Thanks in advance for your help
    Markus

http://www.nabble.com/file/p18219384/UBI-ALS-NG.zip UBI-ALS-NG.zip 
-- 
View this message in context: 
http://www.nabble.com/%22mvn-test%22-uses-wrong-resources-tp18219384p18219384.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