You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Watters <an...@gointernet.co.uk> on 2004/11/17 11:43:30 UTC
Setting properties in maven.xml
Is it possible to set properties in maven.xml using the <property
name="" value=""/>?
For example, the following code runs ok but the goal ignores the
property that I have set
<property name="maven.tomcat.precompile" value="false"/>
<attainGoal name="tomcat:deploy"/>
However, if I set the property in project.properties everything works fine.
Am I misusing the attainGoal tag?
Thanks
Andrew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Setting properties in maven.xml
Posted by Andrew Watters <an...@gointernet.co.uk>.
Excellent, thanks Dan, that works. Still making the mental step from ant
to maven when it comes to writing goals.
dan tran wrote:
>try this, <j:set var="maven.tomcat.precompile" value="false"/>
>
>-D
>
>
>On Wed, 17 Nov 2004 10:43:30 +0000, Andrew Watters
><an...@gointernet.co.uk> wrote:
>
>
>>Is it possible to set properties in maven.xml using the <property
>>name="" value=""/>?
>>
>>For example, the following code runs ok but the goal ignores the
>>property that I have set
>>
>><property name="maven.tomcat.precompile" value="false"/>
>><attainGoal name="tomcat:deploy"/>
>>
>>However, if I set the property in project.properties everything works fine.
>>
>>Am I misusing the attainGoal tag?
>>
>>Thanks
>>Andrew
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>For additional commands, e-mail: users-help@maven.apache.org
>
>
>
>
Re: Setting properties in maven.xml
Posted by dan tran <da...@gmail.com>.
try this, <j:set var="maven.tomcat.precompile" value="false"/>
-D
On Wed, 17 Nov 2004 10:43:30 +0000, Andrew Watters
<an...@gointernet.co.uk> wrote:
> Is it possible to set properties in maven.xml using the <property
> name="" value=""/>?
>
> For example, the following code runs ok but the goal ignores the
> property that I have set
>
> <property name="maven.tomcat.precompile" value="false"/>
> <attainGoal name="tomcat:deploy"/>
>
> However, if I set the property in project.properties everything works fine.
>
> Am I misusing the attainGoal tag?
>
> Thanks
> Andrew
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org