You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Samuel Le Berrigaud <sa...@gmail.com> on 2005/12/06 11:59:26 UTC
[m2] pom properties how-to ?
Hi,
just wanted to know how to use the "properties" in the POM (the one
defined under project/properties)
I tried something like:
<properties>
<property>
<name>a.name</name>
<value>a.value</value>
</property>
</properties>
but it does not work...
And then can reference the properties in the POM like that ${a.name} ?
Thanks,
--
Samuel Le Berrigaud
Re: [m2] pom properties how-to ?
Posted by Samuel Le Berrigaud <sa...@gmail.com>.
Thanks Odea,
however, just a minor change to what you wrote:
<properties>
<hello.value>HELLO</hello.value>
</properties>
There are no "property" tag within "properties".
SaM
On 12/6/05, Odea Ching <oc...@exist.com> wrote:
>
> Hi Samuel,
>
> You can use the properties element to set the value of a property in a
> resource file through the pom's properties section.
>
> #sample.properties
> samle.property=${hello.value}
>
> pom.xml:
> <properties>
> <property>
> <hello.value>HELLO</hello.value>
> </property>
> </properties>
>
> You can also use it to declare properties/variables that you can use on
> your plugin configuration, etc.
>
> Regards,
> Deng
>
>
> Samuel Le Berrigaud wrote:
>
> >Hi,
> >
> >just wanted to know how to use the "properties" in the POM (the one
> >defined under project/properties)
> >
> >
> >I tried something like:
> >
> ><properties>
> > <property>
> > <name>a.name</name>
> > <value>a.value</value>
> > </property>
> ></properties>
> >
> >but it does not work...
> >
> >And then can reference the properties in the POM like that ${a.name} ?
> >
> >Thanks,
> >--
> >Samuel Le Berrigaud
> >
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Samuel Le Berrigaud
Re: [m2] pom properties how-to ?
Posted by Odea Ching <oc...@exist.com>.
Hi Samuel,
You can use the properties element to set the value of a property in a
resource file through the pom's properties section.
#sample.properties
samle.property=${hello.value}
pom.xml:
<properties>
<property>
<hello.value>HELLO</hello.value>
</property>
</properties>
You can also use it to declare properties/variables that you can use on
your plugin configuration, etc.
Regards,
Deng
Samuel Le Berrigaud wrote:
>Hi,
>
>just wanted to know how to use the "properties" in the POM (the one
>defined under project/properties)
>
>
>I tried something like:
>
><properties>
> <property>
> <name>a.name</name>
> <value>a.value</value>
> </property>
></properties>
>
>but it does not work...
>
>And then can reference the properties in the POM like that ${a.name} ?
>
>Thanks,
>--
>Samuel Le Berrigaud
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org