This document describes how Java apps are detected and built. It includes details on components and configuration of build images.
The Java toolset is run when following conditions met:
.jsp
or.java
extension files is found in root of repo or sub-directories.
The following process is applied for each build:
- Run custom script or command if specified by
PRE_BUILD_SCRIPT_PATH
orPRE_BUILD_COMMAND
. - Run Maven wrapper commands (
./mvnw clean package
for creating package and./mvnw clean compile
for compiling), if maven wrapper shell filemvnw
or cmd filemvnw.cmd
were detected. - Run Maven commands (
mvn clean package
for creating package andmvn clean compile
for compiling), if maven pom filepom.xml
were detected. - Run custom script or command if specified by
POST_BUILD_SCRIPT_PATH
orPOST_BUILD_COMMAND
.
The latest version of Maven is used to install dependencies.
The Java project defines this release schedule. Oryx supports all actively supported releases (1.8.0, 9.0.4, 10.0.2, 11.0.8, 12.0.2, 13.0.2, 14.0.2).
We will update the patch
version of a release at least once every 3 months,
replacing the previous patch
version for that release.