Apache Maven is a build automation tool specifically used for Java-based projects to automate the creation of an application build by compiling source code, running automated unit tests, and packaging binary code.
It is based on the Project Object Model (POM). We will use a PetClinic Maven-based project available at https://github.com/mitesh51/spring-petclinic.
It has a pom.xml
that is as follows:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.springframework.samples</groupId> <artifactId>spring-petclinic</artifactId> <version>4.2.5-SNAPSHOT</version> <name>petclinic</name> <packaging>war...