From 85bb347fbad2cf9149dd82bca94a10a0e870889d Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Fri, 4 Sep 2015 22:14:29 -0700 Subject: [PATCH] Add eclipse specific profile to set execution env Update the parent POM to include a new profile which is automatically enabled by eclipse. The profile duplicates `default` and also set the compiler version to 1.8. This means that M2E sets the execution environment to `JavaSE-1.8` but the command line build still compiles 1.6 compatible code. Fixes gh-3618 --- spring-boot-parent/pom.xml | 68 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/spring-boot-parent/pom.xml b/spring-boot-parent/pom.xml index 4f1a0e3ec2e..d9ba3337e6e 100755 --- a/spring-boot-parent/pom.xml +++ b/spring-boot-parent/pom.xml @@ -572,6 +572,74 @@ + + eclipse.profile + + + m2e.version + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + 1.8 + 1.8 + + + + + + + spring-ext + http://repo.spring.io/ext-release-local/ + + true + + + false + + + + spring-milestones + Spring Milestones + http://repo.spring.io/milestone + + false + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/snapshot + + true + + + + + + spring-milestones + Spring Milestones + http://repo.spring.io/milestone + + false + + + + spring-snapshots + Spring Snapshots + http://repo.spring.io/snapshot + + true + + + + prepare