diff --git a/java/maven/README.md b/java/maven/README.md index 34bae64a..d79a32c6 100644 --- a/java/maven/README.md +++ b/java/maven/README.md @@ -5,7 +5,7 @@ See [prerequisites](https://paketo.io/docs/howto/java/#prerequisites) of this sa ## Building ```bash -pack build applications/maven --env BP_JVM_VERSION=17 +pack build applications/maven ``` Alternatively, if you want to attach a Maven `settings.xml` file to pass additional configuration to Maven. @@ -18,7 +18,7 @@ The command above will use the sample `settings.xml` file from this repo. It may ```bash cp ~/.m2/settings.xml java/maven/bindings/maven/settings.xml -pack build applications/maven --env BP_JVM_VERSION=17 --volume $(pwd)/bindings:/platform/bindings +pack build applications/maven --volume $(pwd)/bindings:/platform/bindings ``` ## Running diff --git a/java/native-image/java-native-image-sample/README.md b/java/native-image/java-native-image-sample/README.md index c1557066..57e254d3 100644 --- a/java/native-image/java-native-image-sample/README.md +++ b/java/native-image/java-native-image-sample/README.md @@ -4,6 +4,8 @@ ### With `pack` +#### Spring Boot 3.0.x based app + ```bash pack build applications/native-image \ --builder paketobuildpacks/builder-jammy-tiny \ @@ -12,6 +14,14 @@ pack build applications/native-image \ --env BP_JVM_VERSION=17 ``` +#### Spring Boot 3.1.x and later based app + +```bash +pack build applications/native-image \ + --builder paketobuildpacks/builder-jammy-tiny \ + --env BP_MAVEN_ACTIVE_PROFILES=native \ +``` + ### With the Spring Boot Maven Plugin ```bash diff --git a/java/native-image/java-native-image-sample/pom.xml b/java/native-image/java-native-image-sample/pom.xml index 213e8564..62c5447a 100644 --- a/java/native-image/java-native-image-sample/pom.xml +++ b/java/native-image/java-native-image-sample/pom.xml @@ -4,7 +4,7 @@ org.springframework.boot spring-boot-starter-parent - 3.0.5 + 3.1.0 io.paketo