Maven

Maven Payara

Libro Guia

https://payara.gitbooks.io/payara-server/content/documentation/payara-micro/deploying/deploy-program-after-bootstrap.html

Dependencias de Maven

 <!--PayaraMicro APi-->
        <dependency>
            <groupId>fish.payara.extras</groupId>

            <artifactId>payara-micro</artifactId>

            <version>5.194</version>

        </dependency>

        <dependency>

            <groupId>fish.payara.api</groupId>

            <artifactId>payara-api</artifactId>

            <version>5.194</version>

            <scope>provided</scope>

        </dependency>

Ejecutarlo

import fish.payara.micro.BootstrapException;
import fish.payara.micro.PayaraMicro;

/**
 *
 * @author avbravo
 */
public class EmbeddedPayara {
       public static void main(String[] args) throws BootstrapException{
        PayaraMicro.getInstance().addDeployment("/home/avbravo/NetBeansProjects/utp/alexis/transporte/target/transporte.war").bootStrap();
    }
}

Last updated