Skip to content
📙 Everything you need to know about Eclipse MicroProfile
Java Shell Batchfile Dockerfile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cdi update to MicroProfile 3.1 and add Bundle Nov 17, 2019
jax-rs update to MicroProfile 3.1 and add Bundle Nov 17, 2019
json-b update to MicroProfile 3.1 and add Bundle Nov 17, 2019
json-p update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-config update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-fault-tolerance update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-health update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-jwt-auth update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-metrics update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-open-api update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-open-tracing update to MicroProfile 3.1 and add Bundle Nov 17, 2019
microprofile-rest-client update to MicroProfile 3.1 and add Bundle Nov 17, 2019
.gitignore add general .gitignore Jul 29, 2019
.travis.yml
README.md update Open Libery version Nov 17, 2019
buildProjects.sh update OpenTracing code example Aug 26, 2019
pom.xml update to MicroProfile 3.1 and add Bundle Nov 17, 2019

README.md

Getting started with Eclipse MicroProfile 3.0

Build Status

Get the full Course Bundle here.

Bundle Logo

Repository for the YouTube series Getting started with Eclipse MicroProfile 3.0

Series logo

Specifications:

Technologies used for this series:

  • MicroProfile 3.1
  • OpenLiberty 19.0.0.10
  • Java 11
  • Maven 3.6
  • WAD (Watch and Deploy) from Adam Bien (setup)
  • JWTENIZR from Adam Bien

Start the example applications

Each subfolder contains a buildAndRun.sh (Linux/Mac) and buildAndRun.bat (Windows) file to build and start the application on your machine using Docker. You just need Java 11 and Maven installed and a running Docker daemon to start everything. Once the application is up- and running, you can visit http://localhost:9080 to access it (if any JAX-RS endpoint is available in the project).

Open Liberty configuration

The following base server.xml configuration is used:

<?xml version="1.0" encoding="UTF-8"?>
<server description="new server">

    <featureManager>
        <feature>microProfile-3.1</feature>
    </featureManager>

    <mpMetrics authentication="false"/>

    <ssl id="defaultSSLConfig" keyStoreRef="defaultKeyStore" trustStoreRef="jdkTrustStore" />
    <keyStore id="jdkTrustStore" location="${java.home}/lib/security/cacerts" password="changeit" />

    <httpEndpoint id="defaultHttpEndpoint" httpPort="9080" httpsPort="9443"/>
</server>

The following ibm-web-ext.xml is used within the project to deploy the application to the root path /:

<web-ext
        xmlns="http://websphere.ibm.com/xml/ns/javaee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-web-ext_1_0.xsd"
        version="1.0">
    <context-root uri="/"/>
</web-ext>

Parent Maven project

All MicroProfile example projects use the following parent pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>de.rieckpil.blog</groupId>
    <artifactId>microprofile-course-parent</artifactId>
    <version>1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <dependencies>
        <dependency>
            <groupId>org.eclipse.microprofile</groupId>
            <artifactId>microprofile</artifactId>
            <version>3.1</version>
            <type>pom</type>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <properties>
        <java.version>11</java.version>
        <maven.compiler.source>${java.version}</maven.compiler.source>
        <maven.compiler.target>${java.version}</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-war-plugin</artifactId>
                <version>3.2.3</version>
		<configuration>
			<failOnMissingWebXml>false</failOnMissingWebXml>
		</configuration>
            </plugin>
        </plugins>
    </build>

</project>
You can’t perform that action at this time.