I
ilkinulas
Hi,
I am using maven2 and trying to add a directory to the test classpath.
test-resources in the pom.xml is not appended to the test-classpath.
Here's what maven prints when run with -X flag.
[DEBUG] Test Classpath :
[DEBUG] /home/ilkinulas/CVSHOME/DiameterPlatform/
CreditControlApplication/target/classes
[DEBUG] /home/ilkinulas/CVSHOME/DiameterPlatform/
CreditControlApplication/target/test-classes
[DEBUG] /home/ilkinulas/.m2/repository/org/springframework/spring-
beans/2.0.6/spring-beans-2.0.6.jar
[DEBUG] /home/ilkinulas/.m2/repository/aopalliance/aopalliance/1.0/
aopalliance-1.0.jar
[DEBUG] /home/ilkinulas/.m2/repository/org/springframework/spring-
dao/2.0.6/spring-dao-2.0.6.jar
[DEBUG] /home/ilkinulas/.m2/repository/junit/junit/3.8.1/
junit-3.8.1.jar
.....
.....
And in the pom.xml test resources is declared as follows:
<build>
<testResources>
<testResource>
<directory>code/testresources</directory>
</testResource>
</testResources>
......
......
What else I can do to add a custom folder to the test classpath?
thanks...
--ilkin
I am using maven2 and trying to add a directory to the test classpath.
test-resources in the pom.xml is not appended to the test-classpath.
Here's what maven prints when run with -X flag.
[DEBUG] Test Classpath :
[DEBUG] /home/ilkinulas/CVSHOME/DiameterPlatform/
CreditControlApplication/target/classes
[DEBUG] /home/ilkinulas/CVSHOME/DiameterPlatform/
CreditControlApplication/target/test-classes
[DEBUG] /home/ilkinulas/.m2/repository/org/springframework/spring-
beans/2.0.6/spring-beans-2.0.6.jar
[DEBUG] /home/ilkinulas/.m2/repository/aopalliance/aopalliance/1.0/
aopalliance-1.0.jar
[DEBUG] /home/ilkinulas/.m2/repository/org/springframework/spring-
dao/2.0.6/spring-dao-2.0.6.jar
[DEBUG] /home/ilkinulas/.m2/repository/junit/junit/3.8.1/
junit-3.8.1.jar
.....
.....
And in the pom.xml test resources is declared as follows:
<build>
<testResources>
<testResource>
<directory>code/testresources</directory>
</testResource>
</testResources>
......
......
What else I can do to add a custom folder to the test classpath?
thanks...
--ilkin