Bootstrapping the Domain hexagon
The hexagonal application project that we're going to start in this chapter is actually a continuation of the topology and inventory system that we've been developing in the previous chapters. However, the difference here is that we will augment some of the system's capabilities and use the Java Platform Module System (JPMS) to encapsulate the Domain hexagon in a Java module.
To get started with bootstrapping the Domain hexagon, let's create a multi-module Maven project, as follows:
- We first create a parent project called
topology-inventory
by executing the following code:mvn archetype:generate \ -DarchetypeGroupId=org.codehaus.mojo.archetypes \ -DarchetypeArtifactId=pom-root \ -DarchetypeVersion=RELEASE \ -DgroupId=dev.davivieira \ -DartifactId=topology-inventory \ -Dversion=1.0-SNAPSHOT \ -DinteractiveMode=false
We use the
archetype:generate
Maven goal to generate a Maven root project for the system. It creates apom...