public void execute()

in src/main/java/org/apache/maven/plugins/site/run/SiteRunMojo.java [91:116]


    public void execute() throws MojoExecutionException, MojoFailureException {
        checkInputEncoding();

        Server server = new Server(InetSocketAddress.createUnresolved(host, port));
        server.setStopAtShutdown(true);

        WebAppContext webapp = createWebApplication();
        webapp.setServer(server);

        server.setHandler(webapp);

        try {
            server.start();
        } catch (Exception e) {
            throw new MojoExecutionException("Error executing Jetty", e);
        }

        getLog().info(buffer().a("Started Jetty on ").strong(server.getURI()).build());

        // Watch it
        try {
            server.getThreadPool().join();
        } catch (InterruptedException e) {
            getLog().warn("Jetty was interrupted", e);
        }
    }