Creating New Project Using Microprofile 2.0

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.

Advertisement

Posted

in

by

Tags:

Comments

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: