See prerequisites of this sample.
pack build applications/mavenAlternatively, if you want to attach a Maven settings.xml file to pass additional configuration to Maven.
pack build applications/maven --env BP_JVM_VERSION=17 --volume $(pwd)/bindings:/platform/bindingsThe command above will use the sample settings.xml file from this repo. It may be more useful to copy your local settings.xml first.
cp ~/.m2/settings.xml java/maven/bindings/maven/settings.xml
pack build applications/maven --volume $(pwd)/bindings:/platform/bindingsdocker run --rm --tty --publish 8080:8080 applications/mavencurl -s http://localhost:8080/actuator/health | jq .