Jetty Console Log4j 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-log4j-plugin
Last Version

Last Version

1.61
Release Date

Release Date

Type

Type

jar
Description

Description

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

Download jetty-console-log4j-plugin

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
log4j : log4j jar 1.2.14
org.slf4j : slf4j-log4j12 jar 1.7.5

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
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