Bundle mojo incorporates payara-micro with the produced artifact by following steps given as follows:
- Fetch payara-micro from repository and open it to a folder. The default version is 5.183. Specific
version can be provided with @{code payaraVersion} parameter
- Fetch user specified jars from repository
- Copy any existing
domain.xml, keystore.jks, login.conf and login.properties files from resources folder into /MICRO-INF/domain folder
- Copy any existing
pre-boot-commands.txt, post-boot-commands.txt and post-deploy-commands.txt files from resources folder into /MICRO-INF folder
- Copy produced artifact into /MICRO-INF/deploy folder if its extension is war
- Copy user specified artifacts into /MICRO-INF/deploy folder
- Replace
Start-Class entry in the manifest file with a custom bootstrap class if it's provided by user
- Append system properties to @{code MICRO-INF/payara-boot.properties}
- Bundle aggregated content as artifactName-microbundle.jar under target folder
If
autoDeployArtifact is
true, then the context root of the application is constructed as:
- If
autoDeployContextRoot is specified then it's the context root
- If
autoDeployEmptyContextRoot is true (default value) then the context root
is empty. In other words, the application path is just '/'
- If project's
finalName is specified then the context root is equal to its value
- If nothing is specified then the context root is derived from the artifact metadata
If context root is 'ROOT' then the application path is just '/' (same as if
autoDeployEmptyContextRoot is set to
true).