Hi,

Looks like this maven plugin could feet your needs :
http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/index.html

<http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/index.html>I
planned to use it in a near future but I'm asking myself some questions :
When this plugin is plugged in ?
In the earlier phase of the lifecycle, it could be plugged on the validate
phase ... what if properties were needed earlier (for example, properties
won't be usable for parent pom variabilisation) ?
Is validate phase sufficient for variabilized dependencies and its
resolution ?

To my mind, this plugin is useful since it allows us to share parameters
between poms without having to use pom inheritance (for me, pom inheritance
should not be done for properties sharing !.. It should be done for
behaviour sharing)

My 2 cents,
Frédéric

On Fri, Aug 27, 2010 at 10:54 AM, Armin Ehrenfels <
armin.ehrenf...@t-online.de> wrote:

> Hi,
>
> http://maven.apache.org/plugins/maven-resources-plugin/examples/filter.html
>
> HTH
>
> Armin
>
>
> Am 27.08.2010 10:16, schrieb Sebastian Oerding:
>
>  Hello,
>>
>> I want to use properties from external files in a pom.xml? Is this
>> possible? It doesn't seem to be.
>>
>> For example, I have a tomcat.properties with
>> tomcat.manager.url=SOME_URL
>> and so on. I use this properties file as filter. To check this issue I
>> included bla.properties with
>> bla=${tomcat.manager.url}
>>
>> The war is built as expected containing bla.properties with
>> bla=SOME_URL
>> but when trying to use ${tomcat.manager.url} in the pom.xml (for cargo
>> plugin to deploy the war to tomcat)
>> deplyoment fails due to an empty url which looks like that the property is
>> not resolved.
>>
>> With kind regards Sebastian
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to