Closed jonathanamartin closed 8 years ago
No, the version of Spring Boot does not need to match what is referenced in the buildpack. The version you see there is for the Spring Boot CLI which is not used to run self-executable JARs and WARs. However, v3.6.1
was released on January 29, 2016 nearly 8 months before Spring Boot 1.4 and therefore doesn't know how to run it. If my memory serves me, Spring Boot 1.4 support was added in v3.7
released on April 20, 2016. You should use one of the four versions of the buildpack released in the last four months with Spring Boot 1.4.
Makes sense and much appreciated.
The error you're seeing with v3.7
is because the repository your buildpack is referencing does not appear to be up to date either. The canonical version of the repository contains the requested 2.0.2_RELEASE
version.
Hey thanks that helps. I've got a local micro cloud installed. It's got about 22 patches outstanding. I probably just need to run through those.
Edit 1
Just thought more about your statement. If it's a URL defined in the v3.7
Java Buildpack then cluster patches probably wouldn't do much. Are you saying the repository URL changed and "use the latest Java Buildpack"?
Edit 2 Read this: https://github.com/cloudfoundry/java-buildpack/blob/master/docs/extending-repositories.md I think I've got enough to go on now.
Does the version of Spring Boot defined in the app's
pom.xml
need to match the version found in the Java Buildpack? Or, does the version of Spring Boot (or auto reconfiguration) in the Java Buildpack need to be configured somehow to match what's in the app?I'm finding that if I use Spring Boot
v1.4.0.RELEASE
in my app's POM with versionv3.6
or below of the Java Buildpack that I get the following exceptions:I attempted to use
v3.7
and above but ran into other exceptions that I'll have to dig into further. For example:I validated that using Spring Boot
1.3.7.RELEASE
and below works withv3.6
and below of the Java Buildpack:Note, I'm using the HPE Stackato CF implementation which adds another variable.