You can use a maven-properties-plugin developed by Zarar Sidddiqui ,
this way u can have a properties file , and all name=value pairs
available to the build from the global prop file.

http://arsenalist.com/2007/02/07/maven-properties-plugin-download/


Thanks
Nishant Sonar
-----Original Message-----
From: Gisbert Amm [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 04, 2007 7:39 AM
To: Maven Users List
Subject: Re: Load a property file in a pom.xml

The Maven way is to use snapshots or version ranges for that.

-Gisbert

NiranjanG wrote:
> Hi, 
> 
>  Can anyone let me know, How I can load a property file in pom.xml.
> 
> For eg., in my pom.xml, I have to update the version of a dependency
jar .
> dynamically, which will be available in a global property file.
> 
> This is needed because, the component I work depends on 15 otehr
componets,
> and I do not have any automated way to know the latest versions of the
> binaries published by them.
> I decided to have a global property file, which contains all the
component's
> latest versions( which will be updated dynamically ,when they publish
their
> binary, and I want update my pom automatically with the values in that
file,
> so that I will not need to modify my pom everyday.
> 
> Your suggestions will be invaluable to me.
> Thanks,
> Niranjan

-- 
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: [EMAIL PROTECTED]
Internet: www.1und1.de

1&1 Internet AG
Elgendorfer Strasse 57
56410 Montabaur

Amtsgericht Montabaur HRB 6484

Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas 
Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert 
Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren

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