GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tkuznetsova/jetty-pkg: Embed-your-webapp into jetty7 example

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
etc
etc
 
 
grails-app
grails-app
 
 
src
src
 
 
web-app
web-app
 
 
.classpath
.classpath
 
 
.gitignore
.gitignore
 
 
.project
.project
 
 
LICENSE
LICENSE
 
 
LICENSE_CDDL_1.0
LICENSE_CDDL_1.0
 
 
LICENSE_EPL_1.0
LICENSE_EPL_1.0
 
 
NOTICE
NOTICE
 
 
README.md
README.md
 
 
application.properties
application.properties
 
 
pom.xml
pom.xml
 
 

Repository files navigation

Usage

  • Add your war file artifact to the Maven pom.xml
  • Build it mvn clean install
  • Run it java -jar yourWebApp-version.jar start

Configuration

Create a secret (i.e. one per environment):

:➜ md5sum yourWarFile.war
eb27fb2e61ed603363461b3b4e37e0a0  yourWarFile.war

Create a configuration file:

:➜ cat > /etc/bekkopen/appname.properties
jetty.contextPath=/appname
jetty.port=7000
jetty.workDir=/var/apps/appname/
jetty.secret=eb27fb2e61ed603363461b3b4e37e0a0
[ctrl+d]

Start it with a configuration file (default: CWD/jetty.properties):

:➜ java -Dconfig=/etc/bekkopen/appname.properties -jar appname-1.0.0rc0.jar

Override individual properties:

:➜ java -Djetty.port=7001 -jar appname-1.0.0rc0.jar

(I didn't bother implementing combinations of system properties and resource properties - we i.e. use Constretto in our own launcher).

About

Embed-your-webapp into jetty7 example

open.bekk.no/2011/01/14/embedded-jetty-7-webapp-executable-with-maven/

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.