From fb0d9d2a2eb3138ec9b6c349ba47217dcd2cacaa Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Mon, 3 Nov 2014 14:01:51 +0100 Subject: [PATCH] Fix build failure This commit reworks a7e1ec8 to fix the build failure and update the documentation regarding default maven filtering option with spring-boot-starter-parent Fixes gh-1199 --- spring-boot-docs/src/main/asciidoc/howto.adoc | 10 +++---- .../spring-boot-starter-parent/pom.xml | 29 ++++++++++--------- 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/howto.adoc b/spring-boot-docs/src/main/asciidoc/howto.adoc index 01b6261471..8f885ca422 100644 --- a/spring-boot-docs/src/main/asciidoc/howto.adoc +++ b/spring-boot-docs/src/main/asciidoc/howto.adoc @@ -175,11 +175,11 @@ placeholders in `application.properties`, e.g. server.port=${port:8080} ---- -TIP: If you are inheriting from the `spring-boot-starter-parent` POM, or if have enabled -maven filtering for the `application.properties` directly, you may want to change the -default filter token from `+${*}+` since it conflicts with those placeholders. -You can either use `+@*@+` (i.e. `@maven.token@` instead of `${maven.token}`) or you can -configure the `maven-resources-plugin` to use +TIP: If you are inheriting from the `spring-boot-starter-parent` POM, the default filter +token of the `maven-resources-plugins` has been changed from `+${*}+` to `@` (i.e. +`@maven.token@` instead of `${maven.token}`) as the former conflicts with those +placeholders. If you have enabled the maven filtering for the `application.properties` +directly, you may want to change the default filter token to use http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#delimiters[other delimiters]. NOTE: In this specific case the port binding will work in a PaaS environment like Heroku diff --git a/spring-boot-starters/spring-boot-starter-parent/pom.xml b/spring-boot-starters/spring-boot-starter-parent/pom.xml index f6553a4f49..50f0ddf527 100644 --- a/spring-boot-starters/spring-boot-starter-parent/pom.xml +++ b/spring-boot-starters/spring-boot-starter-parent/pom.xml @@ -1,6 +1,5 @@ - + 4.0.0 org.springframework.boot @@ -19,6 +18,7 @@ 1.6 + @ UTF-8 UTF-8 ${java.version} @@ -50,6 +50,13 @@ **/application.properties + + ${basedir}/src/main/resources + + **/application.yml + **/application.properties + + @@ -103,8 +110,7 @@ 2.6 - - @ + ${resource.delimiter} @@ -175,22 +181,17 @@ - + META-INF/spring.handlers - + META-INF/spring.factories - + META-INF/spring.schemas - - + + ${start-class}