Enterprise Java

MicroProfile 2.2 BOM import support

MicroProfile 2.2 just has been released with updates to the Fault Tolerance, Open Tracing, Open API, and Rest Client APIs. What’s also supported since version 2.2 is the usage of BOM (bill of material) dependency imports.

With that approach we can define the MicroProfile version in the dependencyManagement block and use only the desired MicroProfile projects. You use the MicroProfile version that’s supported by your runtime and will get the correct versions of all corresponding MicroProfile projects. This is also useful in the combination with Java EE.

See the following example Maven POM:

<project xmlns="http://maven.apache.org/POM/4.0.0"






This builds a thin deployment artifact that only ships the compiled classes. The project sources are compiled against the Java EE 8 API, the MicroProfile Config 1.3 and Fault Tolerance 2.0 APIs.

Published on Java Code Geeks with permission by Sebastian Daschner, partner at our JCG program. See the original article here: MicroProfile 2.2 BOM import support

Opinions expressed by Java Code Geeks contributors are their own.

Sebastian Daschner

Sebastian Daschner is a self-employed Java consultant and trainer. He is the author of the book 'Architecting Modern Java EE Applications'. Sebastian is a Java Champion, Oracle Developer Champion and JavaOne Rockstar.
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Inline Feedbacks
View all comments
Back to top button