Julien,
 
You should be able to achieve this by taking advantage of maven resource 
filtering feature. Including it in the pom is a bit more tricky though, you can 
replace a ${variable_placeholder} in the POM by providing the version on the 
commandline likeso: -Dmyversion=<value>. However this doesnt meet your 
requirement to use a properties file.
 
Thanks,
-Guillaume

________________________________

From: Julien Martin [mailto:[email protected]]
Sent: Mon 19/01/2009 6:18 AM
To: Maven Users List
Subject: Maven + POM + version + webapp context parameter



Hello,
I would like to achieve the following:
-retrieve the <version>  from a properties file so that I can include it in
both the POM and my web.xml (context parameter). Does that make sense? How
can I achieve this?
Thanks,
Julien.




____________________________________________________________________________________________________
This electronic mail (including any attachments) may contain information that 
is privileged, confidential, and/or otherwise protected from disclosure to 
anyone other than its intended recipient(s). Any dissemination or use of this 
electronic email or its contents (including any attachments) by persons other 
than the intended recipient(s) is strictly prohibited. If you have received 
this message in error, please notify us immediately by reply email so that we 
may correct our internal records. Please then delete the original message 
(including any attachments) in its entirety. Thank you.

Reply via email to