To use properties defined in a plugin, you can't just refer to them by 
name, as they are scoped at the plugin level, i.e. visible by default only 
to that plugin.

To access a(nother) plugins properties, use 
${pom.getPluginContext('maven-war-plugin').getVariable('maven.war.src'').
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


"Quinton McCombs" <[EMAIL PROTECTED]> wrote on 14/02/2003 08:52:42 
AM:

> I am trying to use some of the properties defined in plugin.properties
> in my maven.xml file.  For example, I have a postGoal defined for
> war:init that copies my web.xml and various configuration files into the
> correct location in the maven.war.src directory.  These variables are
> evaluating to "".
> 
> I can get around this problem by defining the properties in my
> project.properties file.
> 
> > -----Original Message-----
> > From: Kurt Schrader [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, February 13, 2003 3:04 PM
> > To: Turbine Maven Users List
> > Subject: Re: Problem with WAR plugin on beta 8
> > 
> > 
> > I am using b8 with the war plug-in and it's working fine 
> > here.  Can you supply any more info?
> > 
> > -Kurt
> > 
> > On Thu, 13 Feb 2003, Quinton McCombs wrote:
> > 
> > > It appears that the plugin.properties file in the war plugin is not 
> > > being processed.  According to the plugin.properties file, 
> > > maven.war.src is set to ${maven.src.dir}/webapp.  However does not 
> > > seem to be set.  I added the following to my maven.xml file:
> > >
> > >     <postGoal name="war:init">
> > >         <echo message="maven.src.dir=${maven.src.dir}"/>
> > >         <echo message="maven.war.src=${maven.war.src}"/>
> > >     <postGoal>
> > >
> > > The result is:
> > >     [echo] maven.src.dir=C:\sourceCode\neo/src
> > >     [echo] maven.war.src=
> > >
> > > 
> > ---------------------------------------------------------------------
> > > 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]
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
[EMAIL PROTECTED]
> For additional commands, e-mail: 
[EMAIL PROTECTED]
> 

> ForwardSourceID:NT000B1362 

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

Reply via email to