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?
Asked
Active
Viewed 135 times
0
-
1You 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 Answers
0
declare them as one of the property
<properties>
<commons.dbcp.version>somenumber</commons.dbcp.version>
</properties>

jmj
- 237,923
- 42
- 401
- 438
-
And then use the property to aet dependency management in the same parent. – chrylis -cautiouslyoptimistic- Jan 20 '15 at 00:43