I'd only put the version in the ParentPOM in a depMgmnt section and
then declare dependencies without versions at all.


________________________________

Curt Yanko | Continuous Integration Services | UnitedHealth Group IT 
Making IT Happen, one build at a time

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Paul Benedict
Sent: Monday, October 25, 2010 2:49 PM
To: Maven Users List
Subject: Re: avoiding dependency version number duplication

<properties>
  <spring.version>2.5.6</spring.version>
</properties>

Then for your dependency versions, specify
<version>${spring.version}</version>

For more information:
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide

Paul

On Mon, Oct 25, 2010 at 1:45 PM, Babak Farhang <[email protected]>
wrote:
> Hi everyone,
>
> Say I have a number of modules that share a dependency on Spring. I'd 
> like to centralize the version number of the Spring library that I'm 
> using, that is, the version these modules depend on. I.e. I don't want

> the version number of the Spring dependency to be duplicated across 
> many pom files. What's the "maven way" for doing this?
>
> -Babak
>
> ---------------------------------------------------------------------
> 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]


This e-mail, including attachments, may include confidential and/or
proprietary information, and may be used only by the person or entity
to which it is addressed. If the reader of this e-mail is not the intended
recipient or his or her authorized agent, the reader is hereby notified
that any dissemination, distribution or copying of this e-mail is
prohibited. If you have received this e-mail in error, please notify the
sender by replying to this message and delete this e-mail immediately.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to