This section describes Apache Maven support for Payara Micro.
Maven Central Artifacts
Payara Micro is available in Maven Central, allowing you to include it as a dependency in your project’s POM. This allows you to easily add the required Payara Micro classes and methods to your application to use Payara Micro programmatically.
To do this, use the following GAV coordinates:
<dependency> <groupId>fish.payara.extras</groupId> <artifactId>payara-micro</artifactId> <version>5.2022.2</version> </dependency>
The Public API dependency must be also added to the project’s POM when developing applications that use proprietary features (
Run Payara Micro using the Maven Plugin
There is a maven plugin built specifically for use with Payara Micro. It has goals to
bundle the application into an Uber JAR,
stop Payara Micro. This plugin is fully documented in the Ecosystem section.
Run Payara Micro using the NetBeans IDE
There is a NetBeans IDE plugin module built specifically for Payara Micro to create and manage the application actions (e.g run, reload & debug). This plugin is fully documented in the Ecosystem - Payara Plugin section.