Jetty Console websocket plugin

Creates runnable wars by embedding Jetty into the WAR

License

License

Categories

Categories

Jetty Container Application Servers
GroupId

GroupId

org.simplericity.jettyconsole
ArtifactId

ArtifactId

jetty-console-websocket-plugin
Last Version

Last Version

1.61
Release Date

Release Date

Type

Type

jar
Description

Description

Jetty Console websocket plugin
Creates runnable wars by embedding Jetty into the WAR

Download jetty-console-websocket-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/org.simplericity.jettyconsole/jetty-console-websocket-plugin/ -->
<dependency>
    <groupId>org.simplericity.jettyconsole</groupId>
    <artifactId>jetty-console-websocket-plugin</artifactId>
    <version>1.61</version>
</dependency>
// https://jarcasting.com/artifacts/org.simplericity.jettyconsole/jetty-console-websocket-plugin/
implementation 'org.simplericity.jettyconsole:jetty-console-websocket-plugin:1.61'
// https://jarcasting.com/artifacts/org.simplericity.jettyconsole/jetty-console-websocket-plugin/
implementation ("org.simplericity.jettyconsole:jetty-console-websocket-plugin:1.61")
'org.simplericity.jettyconsole:jetty-console-websocket-plugin:jar:1.61'
<dependency org="org.simplericity.jettyconsole" name="jetty-console-websocket-plugin" rev="1.61">
  <artifact name="jetty-console-websocket-plugin" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.simplericity.jettyconsole', module='jetty-console-websocket-plugin', version='1.61')
)
libraryDependencies += "org.simplericity.jettyconsole" % "jetty-console-websocket-plugin" % "1.61"
[org.simplericity.jettyconsole/jetty-console-websocket-plugin "1.61"]

Dependencies

compile (1)

Group / Artifact Type Version
org.eclipse.jetty.websocket : javax-websocket-server-impl jar 9.4.12.v20180830

provided (1)

Group / Artifact Type Version
org.simplericity.jettyconsole : jetty-console-api jar 1.61

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