Hi

Instructions on how filtering works in the Resources Plugin can be found
on this page:


http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html


[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
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to