Hi All

dependendyManagement solves the problem

Thank guys



Vihung Marathe wrote:
> 
> Actually, I think the best way to achieve this is to use the
> dependenciesManagement section in the parent POM.
> 
> In your parent POM you define the specific versions of the
> dependencies you want in the dependenciesManagement section. These are
> not actual dependencies of the parent project, just a definition of
> which dependency should have which version.
> 
> In your child project's POM, you define a dependency without
> specifying the version. It will use the version defined in the parent
> POM
> 
> -----Original Message-----
> From: Dennis Lundberg [mailto:[EMAIL PROTECTED]
> Sent: Thursday, August 02, 2007 1:29 PM
> To: Maven Users List
> Subject: Re: Maven 1 to Maven 2 Question
> 
> 
> Girish1702 wrote:
>> 
>> Hi
>> 
>> In maven 1 you can modify the version of a dependency in the
> project.xml of
>> a sub-project through a master project.properties file.
>> 
>> e.g in several project.xml you have
>> <version>${library.axis.version}</version> and in a master
>> project.properties you have library.axis.version=1.2.9. Hence you
> can change
>> the version in different project.xml from a single
> project.properties file.
>> 
>> How do you achieve this in Maven 2 since there are no
> project.properties
>> file?
> 
> There is a properties section in pom.xml that can be used to set 
> properties. I'm not sure if they are inherited, but I think so.
> 
> See the "Properties" section at http://maven.apache.org/pom.html
> 
>> Thanks
>>  
> 
> 
> -- 
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> _________________________________________________________________
> 
> This e-mail may contain confidential information and/or copyright
> material. This e-mail is intended for the use of the addressee only. Any
> unauthorised use may be unlawful.
> 
> If you receive this e-mail by mistake please advise the sender immediately
> by using the reply facility in your e-mail software.
> 
> The Friends Provident group of companies includes these Friends Provident
> plc subsidiary companies:
> 
> Friends Provident Life and Pensions Limited. Registered number 4096141.
> Friends Provident Life Assurance Limited. Registered number 782698.
> Friends Provident Pensions Limited. Registered number 475201.
> Friends Provident Marketing Limited. Registered number 5059179.
> 
> Each of the above subsidiary companies is authorised and regulated by the
> Financial Services Authority.
> 
> Friends Provident Management Services Limited. Registered number 983330
> 
> The ultimate holding company is Friends Provident plc. Registered number
> 4113107.
> 
> All are incorporated companies limited by shares and registered in
> England.
> Registered and Head Office: Pixham End, Dorking, Surrey RH4 1QA.
> 
> www.friendsprovident.com
> 
> _________________________________________________________________
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven-1-to-Maven-2-Question-tf4204985s177.html#a11982251
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to