Hi,
Please excuse me if this has been asked many times before, but Google was
not very helpfull this time :-)
I have a small project for proof of concept in which I want to use
profiles to run my unit tests.
The idea is to have a profile for a developer and one for the build
server. Both have different credentials for DB access.
I'm trying to use filters, so I created 2 filter file (filter-dev and
filter-test).
This is what I have:
<build>
<filters>
<filter>src/test/filters/filter-${env}.properties</filter>
</filters>
<resources>
<resource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
</build>
However, when running mvn test, the Spring application context fails to
load since it can't find the DB settings which are in the filter files.
Sorry for this newbie question, but a good pointer might also help :-)
Thanks in advance!!
BB
Peter
______________________________________________
Member of KBC Group
KBC Securities Disclaimer
http://data.kbcsecurities.be/Disclaimer/Disclaimer.html