I have a Java EE application (with maven) which currently is packaged into a .war file. What I want to do now is execute this project with a Payara Micro Embedded server. This is done like this:
public static void main(String[] args) {
PayaraMicro.getInstance().addDeployment("test.war").bootStrap();
}
The complete application should be packaged into a .jar file and fire up the application server and deploy the application automatically. How do I achieve this?