Getting ready

The easiest way for you to create a Helidon MP project is by using a Maven archetype. Just execute this command:

mvn archetype:generate -DinteractiveMode=false \
-DarchetypeGroupId=io.helidon.archetypes \
-DarchetypeArtifactId=helidon-quickstart-mp \
-DarchetypeVersion=1.4.1 \
-DgroupId=com.eldermoraes.ch08 \
-DartifactId=ch08-mpopenapi \
-Dpackage=com.eldermoraes.com.ch08.mpopenapi

So, your starter project will be in the ch08-mpopenapi folder:

cd ch08-mpopenapi

Before continuing, edit the pom.xml of this project and add one dependency:

<dependency>
<groupId>org.eclipse.microprofile.openapi</groupId>
<artifactId>microprofile-openapi-api</artifactId>
</dependency>

Now, we are ready to go!