How to create a Helidon Microservices application (MicroProfile) with Maven and Eclipse
This blog post shows how to create a simple Helidon Microservices app with Maven, then import it into Eclipse.
So without further ado, let’s get started!
We assume you already have Eclipse and Maven installed, otherwise, please download and install them. Configure Maven’s home directory as an environment variable for your convenience.
Create the project with Maven
Move to your Eclipse workspace where your Java projects reside. An example is below:
Run the following Maven command to create the Helidon project per the specified archetype:
mvn archetype:generate -DinteractiveMode=false -DarchetypeGroupId=io.helidon.archetypes -DarchetypeArtifactId=helidon-quickstart-mp -DarchetypeVersion=2.5.0 -DgroupId=io.helidon.examples -DartifactId=helidon-quickstart-mp -Dpackage=io.helidon.examples.quickstart.mp
If everything goes well, you will see a screen similar to the one below:
Change to its home directory:
Create the files for your Eclipse-based project:
Provided that everything completes successfully, you will see a screen like the one below:
Now you can run an mvn package command to make sure it is running properly as expected: