diff --git a/README.md b/README.md index d46e6bd..89059d7 100644 --- a/README.md +++ b/README.md @@ -217,8 +217,15 @@ If the build fails for any reason, a `BuildpackException` will be thrown, this i ### Maven exec:java To play with the Java Buildpack client & DSL, use the following simple java project: [samples/build-me](samples/build-me) + +To use it, just configure the following env var pointing to a project to be built as a container image + +```bash +export PROJECT_PATH= +export IMAGE_REF= // quay.io// or +``` +and execute this command in a terminal: ```bash -export PROJECT_PATH="$HOME/path_to/java-buildpack-client/samples/hello-quarkus" mvn compile exec:java ``` diff --git a/samples/build-me/README.md b/samples/build-me/README.md index 7ca766a..4f91301 100644 --- a/samples/build-me/README.md +++ b/samples/build-me/README.md @@ -1,6 +1,6 @@ # Buildpack Builder config example -Example of a java project able to build a Quarkus, spring Boot, ... project +Example of a java project able to build a Quarkus, Spring Boot, ... project using the DSL `BuildConfig.builder()` To use it, just configure the following env var pointing to a project to be built as a container image