In this post I’ll show you how to create a new Microprofile 2.0 (based on Java EE 8) project using an archetype created by me. This archetype is on Maven Central and is an archetype that create a Microprofile project using thorntail with the following classes and dependencies.
Dependencies:
- Microprofile 2.0
- Thorntail 2.2.0
Classes:
- MyEndpoint: An exemple of endpoint .
- ApplicationHealthCheck: An example of health check.
- ExceptionMapper: A class to create an exception mapper.
- MicroProfileConfiguration: Class to configure a Microprofile.
To use this archetype run the following maven command:
mvn archetype:generate -DarchetypeGroupId=net.rhuanrocha -DarchetypeArtifactId=microprofile2.0-archetype -DarchetypeVersion=1.0.1 -DgroupId=<new project group id> -DartifactId=<new project artifact id>
After running this command, the project will be created on your current folder.
Leave a Reply