mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
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
This commit is contained in:
parent
b5b2fd2377
commit
51c403b636
@ -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 `<properties>`
|
||||||
|
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"]
|
||||||
|
----
|
||||||
|
<properties>
|
||||||
|
<slf4j.version>1.7.5<slf4j.version>
|
||||||
|
</properties>
|
||||||
|
----
|
||||||
|
|
||||||
|
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]]
|
[[howto-build-an-executable-archive-with-ant]]
|
||||||
=== 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
|
To build with Ant you need to grab dependencies, compile and then create a jar or war
|
||||||
|
Loading…
Reference in New Issue
Block a user