Hi Serge-Emmanuel,
IIRC, the test resources (by default located in src/test/resources) are
copied into target/test-classes just before the test-compile phase.
therefore they should be accessible in the test classpath...
Hope this helps.
Raphaël
2006/6/5, Serge Emmanuel Pagop <[EMAIL PROTECTED]>:
Hi all Maven Gurus,
I have situation with maven 2, surefire plugin and JBoss Embedded EJB3
Alpha-8 :
I like to set some configuration files and resource files in the
testClasspath before I run my test oder testcase class. It seem like, wenn
I
make this configuration in my pom.xml
<testResources>
<testResource>
<directory>src/test/resources</directory>
<includes>
<include>META-INF/persistence.xml</include>
</includes>
</testResource>
</testResources>
I know that man kann also copy all resource files für java classes in the
src/main/resources (Default) directory without have to set </resources>
and
also for the test classes in the src/test/resources (Default) directory
without have to set </testResources>
But I do not understand why the resources kann not be fund in the
classpath.
If some one have any Ideas or may be already runs a sample example like
Maven 2 and JBoss Embedded with a Unit Test, then it will helpful to send
me
some suppositions maybe the full the sample examples as a zip file.
Cheers...
--
----------------------------------
Serge Emmanuel Pagop
Java EE Consultant and Trainer
E-Mail: [EMAIL PROTECTED]
Skype-Name: sisepago
Cell : +49-172-8552687