You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ThE-cLoN NoLc-EhT <no...@yahoo.es> on 2006/07/19 12:18:05 UTC
How pass variables of pom.xml file a other pom.xml in the same project??
Hi!
My questions is
How pass one variable of 1 pom.xml a other
pom.xml
example:
prueba:
pom.xml
prueba/java
pom.xml
First pom.xml
<properties>
<distribucion>/home/fuentes/servidor</distribucion>
</properties>
second pom.xml
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
<warName>zy</warName>
<webappDirectory>${distribucion}/app/webapps</webappDirectory>
<outputDirectory>${distribucion}</outputDirectory>
</configuration>
</plugin>
</plugins>
Thanks!
______________________________________________
LLama Gratis a cualquier PC del Mundo.
Llamadas a fijos y móviles desde 1 céntimo por minuto.
http://es.voice.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How pass variables of pom.xml file a other pom.xml in the same project??
Posted by Wayne Fay <wa...@gmail.com>.
If you explicitly add a <parent> tag in the second pom pointing to the
first, it should inherit the properties.
Wayne
On 7/19/06, ThE-cLoN NoLc-EhT <no...@yahoo.es> wrote:
> Hi!
>
> My questions is
>
> How pass one variable of 1 pom.xml a other
> pom.xml
>
> example:
>
> prueba:
> pom.xml
>
> prueba/java
> pom.xml
>
>
> First pom.xml
>
> <properties>
>
> <distribucion>/home/fuentes/servidor</distribucion>
> </properties>
>
>
> second pom.xml
> <plugins>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
>
> <addMavenDescriptor>false</addMavenDescriptor>
> </archive>
> <warName>zy</warName>
>
> <webappDirectory>${distribucion}/app/webapps</webappDirectory>
>
> <outputDirectory>${distribucion}</outputDirectory>
> </configuration>
> </plugin>
> </plugins>
>
>
> Thanks!
>
>
>
>
> ______________________________________________
> LLama Gratis a cualquier PC del Mundo.
> Llamadas a fijos y móviles desde 1 céntimo por minuto.
> http://es.voice.yahoo.com
>
> ---------------------------------------------------------------------
> 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