Simplest Possible MicroProfile 1.3 Maven Archetype / Kickstarter

Execute:

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 openliberty.io 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: https://github.com/AdamBien/microprofile-essentials-archetype.

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


NEW: Online Workhop Effective WebApps without Frameworks is also coming to: MUC Airport.

Airport MUC workshops: Web (SPA, PWAs, Offline, Desktop, Mobile) Applications Essentials and Effective Web Applications. No migrations. #usetheplatform

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
realworldpatterns.com
...the last 150 posts
...the last 10 comments
License