Skip to content
This repository has been archived by the owner on Mar 2, 2022. It is now read-only.

OpenLiberty/boosted-microprofile-rest-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Boost Maven Plugin Tutorial

This is a basic walkthrough of how to use the Boost Maven Plugin to package an existing Java EE or Microprofile application into a Liberty executable jar.

Create an Application project

To get started, you will first need a basic Java EE or Microprofile application. You can clone the following project as an instructional guide:

git clone git@github.com:OpenLiberty/boosted-microprofile-rest-client.git

The application is a simple MicroProfile application that uses MP RestClient and MP Config to retrieve and display system properties for a target server. The application also uses JPA services to track an invocation counter and timestamp value.

The application project's pom.xml has been configured to use the boost plugin and the boost technology booster dependencies.

Package your application

Run the Maven package command as you normally would when building a Java EE or MicroProfile Application:

  • mvn clean package -Dboost_http_port=9000

From the pom.xml, you can swap out the Apache Derby dependency for a MySQL or DB2 dependency and pass in the JDBC url, username and password. For example:

  • mvn clean package -Dboost_http_port=9000 -Dboost_db_url=jdbc:mysql://localhost:3306/testdb -Dboost_db_user=mysql -Dboost_db_password=mysql

From the pom.xml, you can also swap out the Open Liberty runtime for a TomEE runtime by changing the artifact id of the org.microshed.boost.runtimes dependency:

<dependency>
    <groupId>org.microshed.boost.runtimes</groupId>
    <artifactId>tomee</artifactId>
    <!-- Replaced 'openliberty' with 'tomee'
        <artifactId>openliberty</artifactId>
    -->			
</dependency>

Run the Application

You can run your application using the provided boost goals:

mvn boost:start, mvn boost:stop, mvn boost:run, and mvn boost:debug.

After you start the application, you can access the following microservices:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 87.8%
  • HTML 12.2%