Payara Micro Maven Plugin
Here is GAV (groupId
, artifactId
, version
) of Payara Micro Maven Plugin.
Key | Value |
---|---|
groupId | fish.payara.maven.plugins |
artifactId | payara-micro-maven-plugin |
version | 1.0.3 |
Payara Micro Maven Plugin has three goals; payara-micro:bundle
, payara-micro:start
and payara-micro:stop
.
Goal | Description |
---|---|
payara-micro:bundle | Create Uber Jar |
payara-micro:start | Start the application on Payara Micro |
payara-micro:stop | Stop the application on Payara Micro |
Then minimal description on pom.xml
is here:
|
|
After the goal, two files will appear in ./target
directory.
- application-name.war (e.g. helloweb-1.1.0.war, which is Micro Jar)
- application-name-microbundle.jar (e.g. helloweb-1.1.0-microbundle.jar, which is Uber Jar)
We may run it either on CLI directly or via the plugin’s goals; payara-micro:bundle
, payara-micro:start
and payara-micro:stop
. The way to use the plugin can be integrated with any IDEs, so we’re able to develop applications for Payara Micro easily even if we don’t use Payara Server.
Using CLI
Download Payara Micro (payara-micro.jar) first, then deploy Micro Jar using cli
|
|
Using plugin’s goals
Deploying Uber Jar
|
|
Deploying Micro Jar
|
|