Maven:pluginVar is deprecated.
You must use maven:get
http://maven.apache.org/tags.html#maven:get

Arnaud
 

> -----Message d'origine-----
> De : Thomas Van de Velde [mailto:[EMAIL PROTECTED] 
> Envoyé : mardi 23 août 2005 00:46
> À : Maven Users List
> Objet : Re: How to access default value of property of another plugin
> 
> Martin,
> 
> This has been documented here:
> http://maven.apache.org/tags.html#maven:pluginVar
> 
> e.g. <*maven**:**pluginVar* var="reportsDir" 
> plugin='maven-test-plugin' 
> property='maven.test.reportsDirectory'/>
> 
> 
> Cheers,
> Thomas
> 
> On 8/22/05, Martin Burger <[EMAIL PROTECTED]> wrote:
> > 
> > Hello,
> > 
> > I need the value of the property 
> "maven.test.reportsDirectory" in the 
> > plugin.jelly of my plugin even if it is not set via a 
> > project.properties file.
> > 
> > Regard this simple goal:
> > 
> > <goal name="some:goal">
> > <echo>Value of maven.test.reportsDirectory:
> > ${maven.test.reportsDirectory}</echo>
> > </goal>
> > 
> > If I run this goal without setting the property in a 
> > project.properties, it's output is just "[echo] Value of 
> > maven.test.reportsDirectory:". If I run "maven test:compile 
> > some:goal", it's output is "[echo] Value of
> > maven.test.reportsDirectory: <some value>"
> > 
> > How can I access the default value of that property as 
> defined in the 
> > plugin.properties of the test-Plugin without running a test goal? 
> > Should I set this property in the plugin.properties of my plugin? I 
> > think that solution is not so good, because if that 
> property's default 
> > value is changed I will need to change my settings, too.
> > 
> > Can I load the default properties of another plugin in my plugin's 
> > jelly file?
> > 
> > Regards,
> > Martin
> > 
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> >
> 




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

Reply via email to