Simplest Possible MicroProfile Maven Kickstarter

Execution of the microprofile-essentials-archetype (see also Simplest Possible Java EE 8 Kickstarter):

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

creates a ready to use 3.5kB Thin WAR project with configured JAX-RS runtime, a resource with a GET endpoint ("/ping"), 25 lines of pom.xml with a single microprofile dependency:

and a shell script which executes the the maven and Docker build and starts the image. The build-and-run cycle takes about ...5 seconds.

Payara 5 Full server is not only Java EE 8 compliant, it also comes with MicroProfile 1.2 APIs -- so you don't have to use any esoteric runtimes.

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

See you at Java EE Microservices. Is Munich's airport too far? Learn from home:

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: and newsletter:

A book about rethinking Java EE Patterns


There is an Eclipse Wiki page for MicroProfile which lists implementation statuses:

It's not always updated immediately when a new implementation is available but each implementation shows its own version so it is still quite a useful page.

Posted by Mike on May 11, 2018 at 02:28 PM CEST #

Hi Adam,
Is there a reason why you don't use [1] dockerfile-maven plugin, with it you can get rid of the shell script?



Posted by Dejan Kitic on May 11, 2018 at 03:25 PM CEST #

I get the following error trying this:

Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.0.1:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.airhacks:microprofile-essentials-archetype:0.0.1) -> [Help 1]

Do I need a special maven repo for this?

Thanks for your help.

Posted by Mike on May 13, 2018 at 01:49 AM CEST #

Hi, Adam! It seems you removed this archetype from the repository, right? I can't find it...

Posted by André on May 26, 2018 at 04:20 PM CEST #

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