commit 628276e05e0fa608ab610833daebbf2301db9606 Author: Mauro Talevi <mauro.tal...@aquilonia.org> AuthorDate: Wed Mar 14 15:44:25 2012 +0100 Commit: Mauro Talevi <mauro.tal...@aquilonia.org> CommitDate: Wed Mar 14 15:44:25 2012 +0100
JBEHAVE-740: Updated docs to clarify use of dependency management for version updates. diff --git a/distribution/src/site/content/dependencies.html b/distribution/src/site/content/dependencies.html index b168810..4ba5837 100755 --- a/distribution/src/site/content/dependencies.html +++ b/distribution/src/site/content/dependencies.html @@ -56,6 +56,26 @@ If you are running in a corporate environment, you may be using a Maven Reposito ]]> </script> +<span class="followup">Maven dependencies are by default <b>transitive</b>, i.e. a top-level dependency will pull in all the dependencies it needs.</span> + +<p>To override a version of a specific dependency in the dependency tree, the most effective way is to use the dependency management of the POM, e.g.:</p> + +<script type="syntaxhighlighter" class="brush: xml"> +<![CDATA[ + <dependencyManagement> + <dependencies> + <dependency> + <groupId>org.hamcrest</groupId> + <artifactId>hamcrest-library</artifactId> + <version>1.2.1</version> + </dependency> + </dependencies> + </dependencyManagement> +]]> +</script> + +<p>Learn more about Maven dependency management from the <a href="http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-project-dependencies.html">Maven: The Complete Reference</a>.</p> + <h3 id="ant">Apache Ant</h3> <p>Using no dependency management tool, the build.xml in the <b>lib</b> directory of the binary distribution provides a target to