0

Which is the suitable tag to declare version of dependencies used in child POM, i.e. Properties tag or DependencyManagement tag? What are their respective pros n con's? Is there any better way?

Ankur Piyush
  • 308
  • 1
  • 9
  • 1
    You obviously don't mean "tag or tag"? – JamesB Jan 20 '15 at 00:14
  • DependencyManagement is the correct way which means you don't need to define the version in child's. Furthermore you have only a single point of location where you need to change things. Apart from that you can do some kinf of exlusions etc. only at a single point. – khmarbaise Jan 20 '15 at 08:09

1 Answers1

0

declare them as one of the property

<properties>
   <commons.dbcp.version>somenumber</commons.dbcp.version>
</properties>
jmj
  • 237,923
  • 42
  • 401
  • 438