@@ -0,0 +1,2058 @@
+package org.gozer.services;%0A%0Aimport org.eclipse.jetty.server.Server;%0Aimport org.eclipse.jetty.webapp.WebAppContext;%0A%0Apublic class DeploiementService %7B%0A%0A%0A    public void deploy() throws Exception %7B%0A        String WEB_INF_LOCATION = %22target/git/src/main/webapp/WEB-INF/web.xml%22;%0A        String WEB_APP_LOCATION = %22target/git/src/main/webapp%22;%0A%0A%0A//        WebServer server = new JettyWebServer(WEB_INF_LOCATION, WEB_APP_LOCATION, 8085, %220.0.0.0%22);%0A//        server.startAndAwait();%0A%0A%0A%0A%0A            try %7B%0A                Server server = new Server(8085);%0A                WebAppContext handler = new WebAppContext();%0A                handler.setResourceBase(WEB_APP_LOCATION);%0A                handler.setContextPath(%22/appli%22);%0A                handler.setExtraClasspath(%22target/tmp/classes%22);%0A                handler.setDescriptor(WEB_INF_LOCATION);%0A                server.setHandler(handler);%0A                server.start();%0A%0A%0A            %7D catch (Exception ex) %7B%0A                System.err.println(ex);%0A            %7D%0A    %7D%0A%0A//    public static void main(String%5B%5D args) throws Exception %7B%0A//        Server server = new Server();%0A//        SocketConnector connector = new SocketConnector();%0A//%0A//        // Set some timeout options to make debugging easier.%0A//        connector.setMaxIdleTime(1000 * 60 * 60);%0A//        connector.setSoLingerTime(-1);%0A//        connector.setPort(8080);%0A//        server.setConnectors(new Connector%5B%5D %7B connector %7D);%0A//%0A//        WebAppContext context = new WebAppContext();%0A//        context.setServer(server);%0A//        context.setContextPath(%22/%22);%0A//%0A//        server.addHandler(context);%0A//        try %7B%0A//            server.start();%0A//            System.in.read();%0A//            server.stop();%0A//            server.join();%0A//        %7D catch (Exception e) %7B%0A//            e.printStackTrace();%0A//            System.exit(100);%0A//        %7D%0A//    %7D%0A%0A%0A    public static void main(String%5B%5D args) throws Exception %7B%0A        DeploiementService deploiementService = new DeploiementService();%0A        deploiementService.deploy();%0A    %7D%0A%0A%7D%0A

Add a deploiement service to launch war in jetty