public class Main {
public static void main(String[] args) throws Exception {Container container = new Container();
container.start(); // Create a JDBC driver deployment using maven groupId:artifactId// The version is resolved from your pom.xml's DriverDeployment driverDeployment = new DriverDeployment(container, "com.h2database:h2", "h2");
container.deploy(driverDeployment); // Create a DS deploymentDatasourceDeployment dsDeployment = new DatasourceDeployment(container, new Datasource("ExampleDS")
container.deploy(dsDeployment); // Create the WAR and bundle all the JPA Entities and persistence.xmlWarDeployment deployment = new DefaultWarDeployment(container);