Jetty-Console Maven Plugin

Creates runnable wars by embedding Jetty into the WAR

License

License

Categories

Categories

Jetty Container Application Servers Maven Build Tools
GroupId

GroupId

org.simplericity.jettyconsole
ArtifactId

ArtifactId

jetty-console-maven-plugin
Last Version

Last Version

1.61
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Jetty-Console Maven Plugin
Creates runnable wars by embedding Jetty into the WAR

Download jetty-console-maven-plugin

How to add to project

<plugin>
    <groupId>org.simplericity.jettyconsole</groupId>
    <artifactId>jetty-console-maven-plugin</artifactId>
    <version>1.61</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.simplericity.jettyconsole : jetty-console-creator jar 1.61
org.apache.maven : maven-project jar 2.0
org.apache.maven : maven-archiver jar 2.0.1
commons-io : commons-io jar 1.4

provided (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.5.3
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.10

Project Modules

There are no modules declared in this project.

JettyConsole Maven Plugin

Embeds Jetty in your war file, making it runnable with java -jar myapp.war

How to create your standalone war

Add the following configuration to your Maven webapp pom.xml:

<plugin>
    <groupId>org.simplericity.jettyconsole</groupId>
    <artifactId>jetty-console-maven-plugin</artifactId>
    <version>${jettyconsole.version}</version>
    <executions>
        <execution>
            <goals>
                <goal>createconsole</goal>
            </goals>
            <configuration>
                <additionalDependencies>
                    <additionalDependency>
                        <artifactId>jetty-console-jsp-plugin</artifactId>
                    </additionalDependency>
                    <additionalDependency>
                        <artifactId>jetty-console-startstop-plugin</artifactId>
                    </additionalDependency>
                </additionalDependencies>
            </configuration>
        </execution>
    </executions>
</plugin>

This should output a jetty-console version in target/artifactId-version-jetty-console.war, including plugins for JSP support, and for creating Unix start/stop service scripts for your service (see plugins below)

How to run your standalone war

To get help on command line options, run:

java -jar myapp-jetty-console.war --help

To start your webapp on port 8080, run:

java -jar myapp-jetty-console.war --port 8080 --headless

Plugins

Plugin artifactId What does it do?
jetty-console-startstop-plugin Running java -jar myapp.war --createStartScript creates a Unix service script + config file
jetty-console-winsrv-plugin Running java -jar myapp.war --installWindowsService installs a Windows Service for running your service
jetty-console-jsp-plugin Adds support for serving JSP pages
jetty-console-jettyxml-plugin Lets you configure the Jetty Server or WebappContext from Jetty XML config files.

Versions

Version
1.61
1.60
1.59
1.58
1.57
1.56
1.55
1.54
1.53
1.52
1.51
1.50
1.49
1.48
1.47
1.45
1.44
1.43
1.42