I tried to use properties for parent version as well, but for some
reasons maven keeps pom.xml file on repository (after deploy artifact
for example) with properties name instead of actual version taken from
properties. Perhaps it's ok but this is not working for components that
are trying to use this just deployed before artifact and properties
variable is not changed on properties value on runtime time.

Also there are bugs that prevent to use it:

http://jira.codehaus.org/browse/MNG-2569

http://jira.codehaus.org/browse/MNG-2756

Best regards,
                  Juri.



-----Original Message-----
From: Manos Batsis [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 05, 2007 6:07 PM
To: Maven Users List
Subject: Re: maven properties

Ashley Williams wrote:
> Is it possible to specify pom properties in a properties file? I found
a 
> reference here: http://maven.apache.org/pom.html#Properties but this
just 
> refers to other ways of setting properties. I actually want to use a 
> property for the version in my parent and child poms as they should
all be 
> the same. Also it's no good declaring that property in the parent pom
- as 
> they wouldn't be able to find it in the first place!

I never managed to make stuff like this work (i.e. inheriting or 
extending parent properties in child properties.

Regarding property files, google for maven-properties-plugin.

hth,

Manos

---------------------------------------------------------------------
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