Build, release, run

The build, release, and run phases are described as follows. We should maintain a clear separation between all these three phases:

  • Build: Creates an executable bundle (EAR, WAR, or JAR) from code, as well as dependencies that can be deployed to multiple environments
  • Release: Combines the executable bundle with a specific environment configuration to deploy in an environment
  • Run: Runs the app in an execution environment using a specific release

The build and release phases are highlighted in the following screenshot:

An antipattern is the building of separate executable bundles specific to each environment.

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.