Building the library
Since we'd like to be able to reuse this tool in other projects, we'll start by building a library that exposes its functionality. All of the functionality we'll need is built into the platform, so our POM file is very simple:
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.steeplesoft</groupId> <artifactId>datecalc-master</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>datecalc-lib</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>org.testng<...