<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 <farh...@gmail.com> 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to