adam bien's blog

MicroProfile + Java EE 8 = Thinner WARs 📎

openliberty already supports Java EE 8 and MicroProfile APIs at the same time.

Payara 5 follows the same approach: one server runtime comes fully loaded with Java EE 8 and MicroProfile 1.3 support. Even Payara Server 4 ships with Java EE 7 and MicroProfile 1.3.

With this (brilliant) move, I'm able to use MicroProfile features on stock application servers without changing the runtime in production. Unfortunately, your pom.xml will grow by 100% from one dependency to two:


<dependency>
    <groupId>javax</groupId>
    <artifactId>javaee-api</artifactId>
    <version>8.0</version>
    <scope>provided</scope>
</dependency>
<dependency>
    <groupId>org.eclipse.microprofile</groupId>
    <artifactId>microprofile</artifactId>
    <version>1.3</version>
    <type>pom</type>
    <scope>provided</scope>
</dependency>

Hence these are only "provided" dependencies, they are not included in a WAR. I built a Java EE 8, MP 1.3 microservice on stage: http://devoxx.pl with Java EE 8 and MP 1.3 features. It came with 11 kB Thin WAR

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