Simplest Possible MicroProfile 1.3 Maven Archetype / Kickstarter


mvn archetype:generate -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=microprofile-essentials-archetype -DarchetypeVersion=0.0.2

or (replace [PROJECT_NAME]) to launch the batch mode (quiet / no questions ask):

mvn archetype:generate -DarchetypeGroupId=com.airhacks -DarchetypeArtifactId=microprofile-essentials-archetype -DarchetypeVersion=0.0.2 -DgroupId=com.airhacks -DartifactId=[PROJECT_NAME] -Dversion=0.0.1 -Darchetype.interactive=false --batch-mode

Output: MicroProfile 1.3 ThinWar (4.5kB) project with:

  • MicroProfile HealthCheck: LivenessCheck
  • No-dependencies pom.xml (25 LoC)
  • Configured JAX-RS resource /resources/ping
  • Configured DI in beans.xml descriptor (a single tag, formatted. Takes 5 LoC)

Payara 5 Full and servers, are not only Java EE 8 compliant, they also come with MicroProfile 1.3 APIs -- so you don't have to use any esoteric runtimes.

Payara 5, OpenLiberty Dockerfile is also available from: docklands. The Maven Archetype is available in:

See you at MicroProfile With or Without Jakarta EE, at Munich Airport, Terminal 2


Post a Comment:
  • HTML Syntax: NOT allowed
...the last 150 posts
...the last 10 comments