Now that you are a committer machine, let's go to the next level and make your application ready to deploy whenever you want.
First, you'll need your just-built artifact to be available in a proper repository. This is when we use Sonatype Nexus.
I won't go into the setup details in this book. One easy way to do it is by using Docker containers. You can see more information about it at, https://hub.docker.com/r/sonatype/nexus/.
Once your Nexus is available, you need to go to the pom.xml file and add this configuration:
<distributionManagement> <repository> <id>Releases</id> <name>Project</name> <url>[NEXUS_URL]/nexus/content/repositories/releases/</url> </repository> </distributionManagement>
Now instead of building, just ...