Hi everyone
I have a small problem executing my JUnit test which depend on some test
files (xml and plaintext documents). Whenever I run <mvn test> surefire
compiles all JUnit Testclasses to target/test-classes but my test files
don“t get copied to target/test-classes and therefore my JUnit tests fail.
Now here is my question. How can I get maven2 to copy also my *.xml/*.txt to
target/test-classes?
Here is a snippet from my pom.xml. I have tried to use
additionalClasspathElements but it did not work up to now.
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>C:\data\svn_pws\aktentemplate\trunk\server\core\src\test\java\de\corag\bpm\recordmgmt\domain\metadata\IvvSampleMetaData01Test.xml</additionalClasspathElement>
<additionalClasspathElement>C:\data\svn_pws\aktentemplate\trunk\server\core\src\test\java\de\corag\bpm\recordmgmt\validation\java2xml\ivv-sample-01.xml</additionalClasspathElement>
<additionalClasspathElement>C:\data\svn_pws\aktentemplate\trunk\server\core\src\test\java\de\corag\bpm\recordmgmt\validation\java2xml\IvvSample01Test_MetaData.xml</additionalClasspathElement>
</additionalClasspathElements>
</configuration>
</plugin>
Best regards,
Silvio
--
View this message in context:
http://www.nabble.com/Surefire---Copying-test-files-to-target-test-classes-tp17685305p17685305.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]