From 51c403b636ef3821d3f118458210efb44e47c1dc Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 23 Apr 2014 23:01:21 +0100 Subject: [PATCH] Document how to customize dependency versions Add a section to the "how-to" on customizing third-party dependency versions when using Maven. Fixes gh-434 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index bb7fd5ff32c..544199d23eb 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -1233,6 +1233,26 @@ would only ever be a development time trick probably). +[[howto-customize-dependency-versions-with-maven]] +=== Customize dependency versions with Maven +If you use a Maven build that inherits from `spring-boot-starter-parent` but you want +to override a specific third-party dependency you can add appropriate `` +elements. Browse the {github-code}/spring-boot-dependencies/pom.xml[`spring-dependencies`] +POM for a complete list of properties. For example, to pick a different `slf4j` version +you would add the following: + +[source,xml,indent=0,subs="verbatim,quotes,attributes"] +---- + + 1.7.5 + +---- + +WARNING: Each Spring Boot release is designed and tested against a specific set of +third-party dependencies. Overriding versions may cause compatibilty issues. + + + [[howto-build-an-executable-archive-with-ant]] === Build an executable archive with Ant To build with Ant you need to grab dependencies, compile and then create a jar or war