Maven's pom.xml build file contains the description that would allow the REST sample service code to compile, build, and execute. It packages the executable code inside a JAR file. We can choose one of the following options to execute the packaged executable JAR file:
- Running the Maven tool
- Executing with the Java command
The following sections will cover them in detail.