The Paketo Buildpack for Executable JAR is a Cloud Native Buildpack that contributes a Process Type for executable JARs.
This buildpack will participate if any the following conditions are met:
<APPLICATION_ROOT>/META-INF/MANIFEST.MFcontains aMain-Classentry<APPLICATION_ROOT>/**/*.jarexists and that JAR has a/META-INF/MANIFEST.MFfile which contains aMain-Classentry
When building a JVM application the buildpack will do the following:
- Requests that a JRE be installed
- If
<APPLICATION_ROOT>contains an exploded JAR:- It contributes
<APPLICATION_ROOT>to build and runtime$CLASSPATH - If
<APPLICATION_ROOT>/META-INF/MANIFEST.MFClass-Pathexists- Contributes entries to build and runtime
$CLASSPATH
- Contributes entries to build and runtime
- It contributes
- Contributes
executable-jar,task, andwebprocess types
When participating in the build of a native image application the buildpack will:
- If
<APPLICATION_ROOT>contains an exploded JAR:- Contributes
<APPLICATION_ROOT>to build-time$CLASSPATH - If
<APPLICATION_ROOT>/META-INF/MANIFEST.MFClass-Pathexists- Contributes entries to build-time
$CLASSPATH
- Contributes entries to build-time
- Contributes
When $BP_LIVE_RELOAD_ENABLE is true:
- Requests that
watchexecbe installed - Contributes
reloadprocess type
| Environment Variable | Description |
|---|---|
$BP_LIVE_RELOAD_ENABLED |
Enable live process reloading. Defaults to false. |
$BP_EXECUTABLE_JAR_LOCATION |
An optional glob to specify the JAR used as an entrypoint. Defaults to "", which causes the buildpack to do a breadth-first search for the first executable JAR it finds. |
This buildpack is released under version 2.0 of the Apache License.