@@ -0,0 +1,1101 @@
+/*%0A * See the file LICENSE in distribution for licensing and copyright%0A */%0Apackage org.jtestr.maven;%0A%0Aimport org.apache.maven.plugin.AbstractMojo;%0Aimport org.apache.maven.plugin.MojoExecutionException;%0A%0Aimport org.jtestr.BackgroundServer;%0A%0A/**%0A * The class responsible for starting a background server in Maven2.%0A *%0A * @author %3Ca href=%22mailto:ola.bini@gmail.com%22%3EOla Bini%3C/a%3E%0A * @goal server%0A */%0Apublic class JtestRMavenServerMojo extends AbstractMojo %7B%0A    /**%0A     * Debug output from server.%0A     *%0A     * @parameter expression=%22true%22%0A     */%0A    private boolean debug;%0A%0A    /**%0A     * Port to start background server on.%0A     *%0A     * @parameter expression=%2222332%22%0A     */%0A    private int port;%0A%0A    /**%0A     * Amount of runtimes to start.%0A     *%0A     * @parameter expression=%223%22%0A     */%0A    private int runtimes;%0A    %0A    public void execute() throws MojoExecutionException %7B%0A        try %7B%0A            new BackgroundServer(port, runtimes, debug).startServer();%0A        %7D catch(java.io.IOException e) %7B%0A            throw new MojoExecutionException(%22Build server failed%22, e);%0A        %7D%0A    %7D    %0A%7D%0A

Add server mojo for Maven