Wolfgang,
For test resources you should use the <testResources> element, not the
<resources> element.  The documentation is a bit shallow on this matter.

Asgeir

On Fri, Sep 5, 2008 at 08:46, <[EMAIL PROTECTED]> wrote:

> Hi,
>
>
>
> here is a small story about working with Maven. In my experience of 6
> months now this happened very often like this. Maven is very hard to manage,
> not intuitive and error messages are incomprehensible or misleading.
>
>
>
> The problem: We have 5 Maven projects with sub projects. For test classes,
> the database connection should be defined only once, we put it into the
> user's settings.xml. Now, how accessing the db-properties in test classes?
>
> First idea: Filtering! I created properties file in the test/resources
> directories and tried to filter db properties from the settings properties
> with
>
>
>
> <resources>
>
>  <resource>
>
>    <directory>src/test/resources</directory>
>
>    <filtering>true</filtering>
>
>  </resource>
>
> </resources>
>
>
>
> Nothing happens. Filtering seems to be possible only in main/resources.
> Then I ask myself why have I to define a <directory> when only one value is
> working? You could hard-code it. This is not intuitive!
>
>
>
>
>
> Freundliche Grüße / Kind regards
>
>
>
> Wolfgang Winter
>
> System Analyst
>
>

Reply via email to