Payara Micro Maven Archetype

Payara Micro has a Maven archetype which can create a sample Payara Micro application quickly.

Create a project

To generate a new project from the archetype, run the following command :

$ mvn archetype:generate -DarchetypeGroupId=fish.payara.maven.archetypes -DarchetypeArtifactId=payara-micro-maven-archetype -DarchetypeVersion=1.0.1 -DgroupId=fish.payara.micro -DartifactId=micro-sample -Dversion=1.0-SNAPSHOT -Dpackage=fish.payara.micro.sample -Darchetype.interactive=false

Maven will ask for the project detail confirmation. Press enter or press Y.

Confirm properties configuration:
groupId: fish.payara.micro
artifactId: micro-sample
version: 1.0-SNAPSHOT
package: fish.payara.micro.sample
autoBindHttp: true
javaeeVersion: 8.0
payaraMicroVersion: 5.182
 Y: :

Now Maven will start creating the project structure and will display the following :

[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Archetype: payara-micro-maven-archetype:1.0.1
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: groupId, Value: fish.payara.micro
[INFO] Parameter: artifactId, Value: micro-sample
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: package, Value: fish.payara.micro.sample
[INFO] Parameter: packageInPathFormat, Value: fish/payara/micro/sample
[INFO] Parameter: payaraMicroVersion, Value: 5.182
[INFO] Parameter: package, Value: fish.payara.micro.sample
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] Parameter: javaeeVersion, Value: 8.0
[INFO] Parameter: groupId, Value: fish.payara.micro
[INFO] Parameter: artifactId, Value: micro-sample
[INFO] Parameter: autoBindHttp, Value: true
[INFO] Project created from Archetype in dir: D:\micro-sample
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.067 s
[INFO] Final Memory: 15M/196M
[INFO] ------------------------------------------------------------------------

Run the project

$ mvn package payara-micro:start