On 08/27/2010 06:11 PM, Wayne Fay wrote:
>> Looks like this maven plugin could feet your needs :
>> http://haroon.sis.utoronto.ca/zarar/properties-maven-plugin/index.html
> 
> Since Stephen hasn't given his usual response to this thread yet, I
> will go ahead and copy/paste it in...
> 
>>> Beware, that plugin suffers from a fatal flaw:
>>>
>>> Plugins execute after the build plan has been constructed.
>>>
>>> Thus it can only provide properties for things which do not affect the
>>> build plan.
>>>
>>> So, while you'll get some mileage out of that plugin.... ultimately you'll
>>> end up frustrated when you hit one of the places where property
>>> subsitution takes place during determination of the build plan.
>>>
>>> Also, the property substitution will only take place *when* the plugin is
>>> run, so if you invoke another plugin directly outside of a lifecycle goal,
>>> you'll get no substitution...

One more warning: the pluing only provides the properties in the POM
it's called from. If you call the plugin from a parent pom, thild POMs
won't see the properties - this behaviour is definitely different from
properties defined directly inside the parent POM.

-dirk

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to